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.
6.1
JUnit 5 with useJUnitPlatform()
the JUnit dependencies Gradle 9 needs and a first passing test
Open
6.2
A failing test
the real failure output, the report it points at and the exit status of the build
Open
6.3
Filtering tests and test logging
--tests, testLogging, and the difference between a skipped and a filtered test
Open
6.4
The test reports
build/reports/tests and build/test-results, and what each file holds
Open
6.5
Groovy and Spock tests
a Spock specification run for real, and the Gradle dependency block this image cannot resolve
Open