Testing
Five lessons run the tests: JUnit 5 on the test task, a real failure and the report it points at, test filtering and test logging, the files under build/reports/tests, and a Spock specification, which this image runs outside Gradle.
035
JUnit 5 with useJUnitPlatform()
the JUnit dependencies Gradle 9 needs and a first passing test
Open
036
A failing test
the real failure output, the report it points at and the exit status of the build
Open
037
Filtering tests and test logging
--tests, testLogging, and the difference between a skipped and a filtered test
Open
038
The test reports
build/reports/tests and build/test-results, and what each file holds
Open
039
Groovy and Spock tests
a Spock specification run for real, and the Gradle dependency block this image cannot resolve
Open