| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
JUnit Jupiter assertion step integration for Allure Java.
Use this module when you already use allure-jupiter and want individual JUnit Jupiter assertion calls to appear as nested steps in Allure Report.
Gradle:
val aspectjAgent by configurations.creating
dependencies {
testImplementation(platform("io.qameta.allure:allure-bom:<allure-version>"))
testImplementation("io.qameta.allure:allure-jupiter")
testImplementation("io.qameta.allure:allure-jupiter-assert")
testRuntimeOnly("org.aspectj:aspectjrt:<aspectj-version>")
aspectjAgent("org.aspectj:aspectjweaver:<aspectj-version>")
}
tasks.test {
useJUnitPlatform()
doFirst {
jvmArgs("-javaagent:${aspectjAgent.singleFile}")
}
}Maven, with allure-bom imported in dependency management, can use the same artifact together with allure-jupiter and an AspectJ javaagent configured for the test JVM.
Enable the AspectJ weaver for the test JVM. The module weaves JUnit Jupiter assertions and reports them as nested Allure steps.
Use this only when assertion-level reporting is desired. allure-jupiter is enough for normal JUnit Jupiter reporting.
| Back | FazBrowse Home | New Git URL |