This hello world shows a unit test executed in Spock.
- Test classes are groovy files in src/test/groovy folder.
- Production code are java files in src/main/java folder.
- Install Gradle
- Use the
Clone or download
button above the get the url of this repository - In IntelliJ IDEA: File → New → Project From Version Control → Git → put the url of this repository
$ cd gradle-spock
$ gradle test
- The test will fail on purpose. Open the HTML report generated in ./build/reports/tests/test/index.html
- Intellij IDEA 2016.1.4
- Gradle 4.0.0
- Java 8
- Spock 1.1
To take a look in other projects, please see https://github.com/topera/index