Skip to content

Latest commit

 

History

History
42 lines (22 loc) · 1.58 KB

File metadata and controls

42 lines (22 loc) · 1.58 KB

Modules

JUnit 4 Module

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.

Guice Module

Integration with the Guice IoC container. For examples see the specs in the codebase.

With Spock 1.2+ detached mocks are automatically attached to the Specification if they are injected via @Inject.

Tapestry Module

Integration with the Tapestry5 IoC container. For examples see the specs in the codebase.

Unitils Module

Integration with the Unitils library. For examples see the specs in the codebase.

Grails Module

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.