Member-only story

How to add Step Descriptions in Allure Reports (Gradle + Java)

Jaspreet Kaur
Aug 7, 2021

--

If you are wondering why the Step descriptions you added in your methods are not showing up in your Allure reports, here is the fix you need.

In your build.gradle file, you need to have aspectjweaver dependency added:

dependencies {
runtimeOnly 'org.aspectj:aspectjweaver:1.9.8.M1'
}
allure {
version = “2.14.0”
aspectjweaver = true
}

And voila, next time you generate your Allure report, test step descriptions will show up in the report something like this:

--

--

No responses yet

Write a response