Spock 2 integration for Allure Java.
Use this module when your specifications run on Spock 2 and you want specifications, features, iterations, fixtures, parameters, and failures to appear in Allure Report.
- Allure Java 3.x requires Java 17 or newer.
- This module targets Spock 2.
- The current build validates against Spock 2.4 for Groovy 5.0 and Groovy 5.0.6.
Gradle:
dependencies {
testImplementation(platform("io.qameta.allure:allure-bom:<allure-version>"))
testImplementation("io.qameta.allure:allure-spock2")
}Maven, with allure-bom imported in dependency management:
<dependency>
<groupId>io.qameta.allure</groupId>
<artifactId>allure-spock2</artifactId>
<scope>test</scope>
</dependency>Add the dependency to a Spock 2 project. The module registers io.qameta.allure.spock2.AllureSpock2 as a Spock global extension through service loader metadata.
- Specifications, features, iterations, fixture methods, and errors.
- Data-driven parameters and Spock tags.
- Labels, links, JavaDoc descriptions, test-plan filtering, and fixture metadata.