# spockframework/spock

The Enterprise-ready testing and specification framework.

Repository: https://github.com/spockframework/spock
Canonical: https://ross.abutalabs.com/products/spock
Homepage: https://spockframework.org
Language: Java
License: Apache-2.0
License Family: permissive
Topics: java, groovy, testing, bdd-style-testing-framework, spock-framework
Last push: 2026-08-26T12:45:51+00:00

## Health v2 (maintenance only)
Score: 74/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 28, longevity 100
- inputs: {"age_days": 5743, "days_push": 7, "days_rel": 265, "gap_med": null, "n_releases_24m": 1}
- flags: no_readme
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3631, forks 482 (observed 2026-08-28T04:08:12.050481+00:00)

## What it is
Spock is a testing and specification framework for JVM developers that combines BDD-style readable specifications with powerful built-in mocking and data-driven testing. It uses a Groovy DSL and integrates with the JUnit Platform and common build tools.

## Use cases
- write readable bdd-style tests for java and groovy code
- mock and stub dependencies in unit tests
- run data-driven tests with parameter tables
- migrate tests to junit 5 platform
- specify expected exceptions in tests

## When to avoid
- your project is pure Java and you want to avoid adding Groovy
- you need a framework outside the JVM ecosystem
- you prefer plain JUnit assertions without a DSL

## Facets
- artifact type: framework
- maturity: active
- function: testing, mocking, e2e-testing
- domain: testing, developer-tools
- platform: jvm, jvm-scripting
- tags: bdd, specification-framework, data-driven-testing, junit-platform, groovy-dsl, jvm

## Member repositories
- spockframework/spock (main) score 74

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:12.050481+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:31:53.207471+00:00, confidence not recorded.
  - homepage: https://spockframework.org (fetched 2026-08-29T09:26:24.777674+00:00, sha 15420b166a05)
  - site_page: https://docs.spockframework.org (fetched 2026-08-29T09:26:24.786165+00:00, sha b2770797ace2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
