Yaroslav Pernerovsky Yaroslav Pernerovsky - 12 days ago 10
Groovy Question

Allure @Step annotation does not work with groovy/spock code

I'm using spock framework and groovy for my tests. Also I'm using allure-spock-1.0-adaptor for generating Allure reports. Reports looks fine, but not showing steps in results. All groovy methods are annotated with @Step but still not logged in report.
How to fix that?

Answer

Check FAQ. I suppose you need to add javaagent. AspectJ is used to process steps, attachments and parameters.