Tests and builds

Nine lessons take the language to a project: Spock feature methods with a where: table, mocks and stubs, JUnit 5 in a Groovy class, CodeNarc run for real, Groovy in a Gradle build, @Grab and the command line, concurrency with the JDK, and a command line tool with its specification, run end to end.

9.1 Spock: feature methods given, when, then and expect, run by the JUnit Platform Open 9.2 Spock: data-driven features a where: table, the unrolled rows and the failure that names one Open 9.3 Spock: mocks and stubs an interaction on a collaborator, and a stub that only answers Open 9.4 JUnit 5 from Groovy the same assertions in a Groovy test class, run with the console launcher Open 9.5 CodeNarc the linter of Groovy run for real, with its report and its ruleset Open 9.6 Groovy in a Gradle build the groovy plugin, localGroovy() and Spock in a build, with links to the Gradle course Open 9.7 @Grab and command line scripts @Grab as the real offline failure, and CliBuilder for a script with options Open 9.8 Concurrency with the JDK threads, an executor, a future and a parallel collection Open 9.9 A finishing project a command line tool with its Spock specification, linted and run end to end Open

Lessons