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.

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

Lessons