- Read
CONTRIBUTING.adocand follow its conventions, in particular the Code Standards and Avoiding AI Slop sections, when changing code or docs. - The tests for
spock-coreare located in the separatespock-specsmodule. - This repository is frequently forked, so when working with
gitmake sure to use the correct remote:spockframework/spockis the main repository, anything else is a fork. - Spock uses snapshot tests: never generate the snapshot files manually, always use
-PupdateSnapshotsto regenerate them, then inspect the results.- Snapshots support an optional
snapshotId, use this for multiple snapshots per test, or if the snapshot depends on something, e.g., the Groovy version.
- Snapshots support an optional
- Spock is built and tested against multiple Groovy versions, selected via the
variant(Groovy) andjavaVersionsystem properties (e.g.-Dvariant=4.0 -DjavaVersion=17);gradle.propertieslists the supported values (variantsList,javaVersionsList). Set or mention the variant when a build/test issue may be Groovy-version specific.