A sample Spring Boot application with Spock tests. For more information, see the blog entry Testing Spring Boot Applications with Spock.
To run the unit tests:
./gradlew test
To run tests and build the JAR file:
./gradlew build
./gradlew bootRun