1. Introduction: A brief overview of Spock, its goals, and what sets it apart from other testing frameworks.

  2. Getting Started: Quickest paths to try Spock: the Groovy Web Console and the Spock Example Project for Ant, Gradle, and Maven.

  3. Spock Primer: Core concepts and building blocks of a specification: fields, fixture methods, feature methods, and blocks.

  4. Data Driven Testing: Running the same feature method against multiple inputs using data tables, data pipes, and data providers.

  5. Interaction Based Testing: Creating and verifying mocks, stubs, and spies to test how objects collaborate.

  6. Extensions: Built-in extension annotations, the Spock configuration file, and the API for writing your own extensions.

  7. Utilities: Helper classes shipped with Spock, including utilities for time-dependent code and collection-matching conditions.

  8. Parallel Execution: Configuration and execution modes for running specifications and features concurrently.

  9. Modules: Optional integrations with Spring, JUnit 4, Guice, Tapestry, and Unitils.

  10. Release Notes: Version-by-version summary of new features, enhancements, fixes, and breaking changes.

  11. Migration Guide: Notes on incompatible changes between versions and guidance for upgrading existing specifications.

  12. Frequently Asked Questions (FAQ): Answers to common questions about optional dependencies, mocking choices, and platform support.

  13. Known Issues: Documented limitations and workarounds.

Single Page Documentation