Search code examples
grailsintellij-ideaintegration-testingcode-coverage

IntelliJ doesn't show all classes in coverage view of my grails application


In my grails application i have some integration tests for each service. After the execution of those tests with coverage the IDE show me Coverage View, but some of those services don't appear in the tree of packages and classes of that view.

What i have to do for the Coverage View on IntelliJ show me all classes (even those with 0% cover) when i run my integration tests from my grails application?

The integration-tests are all in the same package, so as the services been tested. Some of those services appear, and some of them don't.

And sorry for the mistakes, that is my first question and English is not my primary language.


Solution

  • I managed to solve part of the problem. By accessing the Grails View, select the service test file I would like to see the coverage and run this test alone (right click> Run 'ServiceTest' With Coverage...) as an integration test.

    The coverage view of IntelliJ showed me coverage percentage of the service I was testing the way I needed.