| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
Karate runtime listener integration for Allure Java.
Use this module when your API tests run on Karate 2 and you want Karate features, scenarios, steps, tags, and runtime attachments to appear in Allure Report.
Gradle:
dependencies {
testImplementation(platform("io.qameta.allure:allure-bom:<allure-version>"))
testImplementation("io.qameta.allure:allure-karate")
}Maven, with allure-bom imported in dependency management:
<dependency>
<groupId>io.qameta.allure</groupId>
<artifactId>allure-karate</artifactId>
<scope>test</scope>
</dependency>Register io.qameta.allure.karate.AllureKarate as a Karate runtime listener:
Runner.builder()
.path("classpath:features")
.listener(new AllureKarate())
.parallel(4);The listener is safe to reuse with Karate's parallel runner. Evidence remains associated with the scenario and step that produced it.
The integration follows Karate's reporting privacy settings:
For example:
* configure logging =
"""
{
mask: {
headers: ['X-Api-Key'],
jsonPaths: ['$.credentials.secret'],
replacement: '***'
}
}
"""When allure-junit-platform and allure-karate are both present, the JUnit Platform listener ignores the dynamic nodes produced by Karate's legacy JUnit 5 annotation and the current io.karatelabs.junit6.Karate.Test annotation. The dedicated Karate listener remains the single source of Karate results, while ordinary Jupiter tests continue to be reported.
This duplicate suppression does not register the Karate runtime listener. Continue to configure AllureKarate through Runner.builder().listener(...) as shown above, or through an equivalent Karate runner configuration.
| Back | FazBrowse Home | New Git URL |