beckje01 / grails-code-coverage

Git Repo of the Grails Code Coverage plugin.
http://grails.org/plugin/code-coverage
16 stars 26 forks source link

Plugin is not working for 2.5.4 #49

Open lthur opened 7 years ago

lthur commented 7 years ago

Hi, hope you are well!

I think I'm facing an issue, I'm using grails 2.5.4, code-coverage:2.0.3-3 for measuring coverage but I'm not seeing the report generated correctly.

I have a Controller that has 100% of lines covered, but 20% of branch coverage. I do not have any conditionals in the Controller, and the report shows me that I'm NOT covering a return of a Map

I've attached an image to be more clear.

captura de pantalla 2016-12-23 a las 16 42 52

Note: I have disabled the AST-Tranformation.

Any ideas on this? Thank you

beckje01 commented 7 years ago

That is just a limitation of groovy with the current coverage tools. There isn't anything I know you can do to fix this. If you find a solution that works for groovy and a coverage tool we could apply it here.