renatoathaydes / spock-reports

This project creates a global extension to Spock to create test reports.
Apache License 2.0
273 stars 68 forks source link

fix and test #231 (code blocks are not shown for annotated features) #232

Closed Gleethos closed 2 years ago

Gleethos commented 2 years ago

It looks like annotations cause the VividASTVisitor to ignore the blocks of a specification method. I fixed it by overriding the method doing the annotation visiting and skipping the traversal of the annotation code entirely...

My fix did not cause any regressions in the test suite and I also added an additional test in order to make sure that this bug does not come back some day...

renatoathaydes commented 2 years ago

Thanks for the fix, I will release this in the next release... but I need to upgrade Spock to the latest version and fix a couple of small bugs still pending first.