I am looking to use Allure reports in a Groovy project. Allure uses @Step annotation and AspectJ to create a nice nested steps report. Groovy does not support AspectJ. I believe it is possible to wrap a method call using AST.
1. There is an example on the Groovy site, the problem is it is simply adds the last statement to the method, and it may be never reached.
2. I would like to wrap all public method of all superclasses of a certain class. How can I do it without annotating all methods?
3. Ideally, I would like to log step method`s source code also.
1
Add a comment...