Intellij IDEA skipping closing bracket on test coverage

Viewed 650

I'm working on a Grails project. When I run unit tests with test coverage, it skips the enclosing brackets from code coverage. It's impossible to get 100% coverage. It happens for all methods.

I tried varying the coverage runner by using JaCoCo and Emma, but no success.

How can I fix this? Why do those brackets get added to total coverage anyway? It's super annoying.

EDIT: Actually it skips closing brackets right after return (or break) statements.

enter image description here

0 Answers
Related