Skip to content

Limitations ​

Spockk is in active development, and it falls short of writing a specification directly in Spock for Groovy.

✓Spockk today

  • given/when/then/expect/and/cleanup block labels, with natural-language descriptions
  • Explicit and implicit conditions, with Spock-style failure diagrams
  • Data tables and data pipes
  • Fixture methods (setup/cleanup/setupSpec/cleanupSpec)
  • Interaction-based testing (1 * mock.method(), stubbed responses)
  • Runs on Spock's own JUnit Platform engine, with full IDE/report integration

–Still Groovy-only

  • Spock extensions (@IgnoreIf, @Requires, ...) are only experimentally supported
  • More than 10 years of features waiting to be ported to Kotlin 😁

These and other improvements are on the roadmap. Stay tuned for future releases!

Released under the Apache License 2.0.