spockframework/spock

The Enterprise-ready testing and specification framework.

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 5 minutes ago
Added to GitGenius on September 19th, 2026
Created on December 12th, 2010
Open Issues & Pull Requests: 210 (+0)
GitHub issues: Enabled
Number of forks: 484
Total Stargazers: 3,630 (+0)
Total Subscribers: 127 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 7.1 hours
Mean response time: 225.5 days
90th percentile: 335.9 days
Tracked items: 97

Most active contributors

Sign in to see contributor activity.

How this project is maintained

67% of open issues come from outside the core team, a mix of external reports and the maintainers' own roadmap. Three people close 93% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 21
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 1,038 days
Stale 30+ days: 16
Stale 90+ days: 15

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • bug (41)
  • new feature (17)
  • not a bug (6)
  • Module-Core (4)
  • Type-Defect (3)
  • waiting for feedback (3)
  • SSCCE required (2)
  • Type-Enhancement (2)

Detailed Description

Spock is a BDD-style testing and specification framework for Java and Groovy applications. It addresses the need for expressive, readable test specifications by combining Groovy's dynamic syntax with a structured given-when-then format that makes test intent clear to both developers and non-technical stakeholders. Tests are written as specifications using Groovy's flexible syntax, allowing developers to express complex test scenarios with minimal boilerplate while maintaining strong assertions and mocking capabilities.

Spock suits teams building Java or Groovy applications who want tests that read as executable specifications rather than procedural code. It works well for projects where test readability and maintainability matter, particularly in enterprise environments where specifications need to communicate intent across technical and non-technical audiences. The framework integrates with the JUnit Platform, making it compatible with standard Java testing infrastructure and IDEs. Developers should note that Spock requires Java 8 or later and Groovy 2.5 or newer, with Groovy 3.0 or newer recommended for projects using Java 12 and above.

The project maintains active development with regular releases available through Maven Central. Snapshot builds are published to the Sonatype Snapshot repository for those tracking development versions, and intermediate stable builds can be obtained through JitPack. The framework provides multiple Groovy variant distributions to support different Groovy versions, allowing projects to choose the variant matching their Groovy dependency.