| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
AssertJ assertion step integration for Allure Java.
Use this module when you want AssertJ assertion chains 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-assertj")
testRuntimeOnly("org.aspectj:aspectjrt:<aspectj-version>")
aspectjAgent("org.aspectj:aspectjweaver:<aspectj-version>")
}
tasks.test {
doFirst {
jvmArgs("-javaagent:${aspectjAgent.singleFile}")
}
}Maven, with allure-bom imported in dependency management, can use the same artifact together with an AspectJ javaagent configured for the test JVM.
Enable the AspectJ weaver for the test JVM. The module weaves AssertJ calls and reports assertion chains as Allure steps.
For large classpaths, consider an AspectJ META-INF/aop.xml that limits weaving to Allure, AssertJ, and your test packages.
| Back | FazBrowse Home | New Git URL |