I'm using Spring Boot project with the last version of IntelliJ IDEA (2018.2.1 Ultimate Edition).
When I run all my test with coverage the Coverage window doesn't show, and there's no percentage beside my main classes.
I've tried enabling the coverage window by going to View -> Tool Windows -> Coverage
, but the coverage tab is disabled (not clickable).
If I remember correctly the coverage was working fine before I update IntelliJ. Is that a bug with the last version ?
Edit
the coverage plugin is already installed
Potentially the Coverage plugin is installed but disabled on your machine e.g. IntelliJ wasn't restarted after plugin was enabled. Try restarting after double checking that Coverage plugin is enabled. As per IntelliJ Code Coverage docs:
Prerequisite
Make sure the Code Coverage plugin is enabled. The plugin is activated by default. If the plugin is disabled, enable it on the Plugins settings page as described in Managing Plugins. If the plugin is disabled, the code coverage tabs will not be visible in the run/debug configuration dialogs.
Try opening Settings > Build, Execution, Deployment > Coverage and check the "Activate Coverage View" checkbox. After that run another test with Coverage.
It's not a problem with JDK or latest version of IntelliJ.
Here is the step you follow and see the coverage window. Run project with coverage, sometimes coverage window not shown if you are unable to see coverage window then
After this, your coverage window is shown.
Still, if you are unable to see coverage window then please double check is coverage view enable or not follow these steps:
Again follow the above step run with coverage, press shift+f9 etc.
Hope this help.
Try and go to
Run-->edit configurations-->select code coverage ( then you can select IDEA/EMMA/...)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With