Integration with JUnit 4 features for Spock 2+ (which internally uses JUnit Platform - part of JUnit 5).
The module is required for:
-
running JUnit 4 rules and class ruless (
@Rule/@ClassRule) -
using JUnit 4’s test fixture annotations (
@BeforeClass,@Before,@After,@AfterClass)
|
Note
|
This module does its best to support old features from JUnit 4, however, users are encouraged to migrate to the native Spock counterparts. |
With Spock 1.2+ detached mocks are automatically attached to the Specification if they are injected via @Inject.
The Grails plugin has moved to its own GitHub project.
|
Note
|
Grails 2.3 and higher have built-in Spock support and do not require a plugin. |