Skip to content

kensipe/spock-demos-nfjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spock Testing Example Code for NFJS

purpose

This is a series of comparisons of junit, groovy test cases, and spock presented by Ken Sipe

getting started

The code is provided using gradle. So after you clone the repo, just type:

./gradlew test or gradlw.bat test

This will download the internet... I mean download and bootstrap gradle + all the dependencies for the project including spock.

setting up your IDE

The gradle build file is configured to setup either an eclipse or IDEA project. just type:

./gradlew idea or ./gradlew eclipse

I have only tested this on IDEA

reviewing failures at the cmd-line

If a gradle build has a failed test, there isn't much information provided on the cmd-line for what is going on. The information can be view from stdio if you use the -i switch with gradle such as:

./gradlew test -i

sharing

you are free to use this as a reference and to share with others... remember where you got it from and share the love! that includes the awesome guys working spock... namely Peter Niederwieser (@pniederw)