Skip to content

Latest commit

 

History

History
6 lines (6 loc) · 1.03 KB

File metadata and controls

6 lines (6 loc) · 1.03 KB
  • Read CONTRIBUTING.adoc and follow its conventions, in particular the Code Standards and Avoiding AI Slop sections, when changing code or docs.
  • The tests for spock-core are located in the separate spock-specs module.
  • This repository is frequently forked, so when working with git make sure to use the correct remote: spockframework/spock is the main repository, anything else is a fork.
  • Spock uses snapshot tests: never generate the snapshot files manually, always use -PupdateSnapshots to 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.
  • Spock is built and tested against multiple Groovy versions, selected via the variant (Groovy) and javaVersion system properties (e.g. -Dvariant=4.0 -DjavaVersion=17); gradle.properties lists the supported values (variantsList, javaVersionsList). Set or mention the variant when a build/test issue may be Groovy-version specific.