Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kensipe/spock-javaone2014
code and demos for javaone 2014
https://github.com/kensipe/spock-javaone2014
Last synced: 23 days ago
JSON representation
code and demos for javaone 2014
- Host: GitHub
- URL: https://github.com/kensipe/spock-javaone2014
- Owner: kensipe
- Created: 2014-09-29T15:27:04.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-29T20:43:03.000Z (about 10 years ago)
- Last Synced: 2023-04-12T05:51:03.206Z (over 1 year ago)
- Language: Groovy
- Size: 3.14 MB
- Stars: 17
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Spock JavaOne 2014 Code Samples
## 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
## Demos
### Basics
1. power assert
2. simple calc
3. old
4. with
5. requires java8
5 fast slow
6. hamcrest
7. data driven with unroll### mocking
1. publisher
2. warehouse
basics
regex
returning3. spying
4. Account### extension sayonfail
## 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)