IntelliJ IDEA Test Coverage window doesn't show

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



IntelliJ IDEA Test Coverage window doesn't show



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).


View -> Tool Windows -> Coverage



enter image description here



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
enter image description here





Try to reinstall Intellij IDEA. When installing, he asks about install the "Coverage" plugin.
– Dherik
Aug 10 at 16:19





If it's a matter of the plugin not being installed, you don't have to reinstall the IDE to solve it...just install the plugin.
– ChiefTwoPencils
Aug 10 at 16:28






@ChiefTwoPencils Guys the coverage plugin is already installed, see my edit !
– K. Ayoub
Aug 10 at 16:44





@K.Ayoub please share Minimal, Complete, and Verifiable example.
– CrazyCoder
Aug 10 at 19:38





I ran tests with coverage of the SpringBoot app with IntelliJ IDEA 2018.2 (Build #IU-182.3684.101, built on July 24, 2018) and then with IntelliJ IDEA 2018.2.1 (Build #IU-182.3911.36, built on August 6, 2018) Coverage window showed in both cases. So it doesn't look like an update issue.
– streetturtle
Aug 13 at 19:09





3 Answers
3



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:



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.





Thanks for your answer, i checked all what's you say but nothing works.
– K. Ayoub
Aug 10 at 17:28





@K.Ayoub are you running IntelliJ on some kind of ancient JDK 6 or beading edge JDK 10/11?
– Karol Dowbecki
Aug 10 at 17:29






I'm running Intellij on JDK 10
– K. Ayoub
Aug 10 at 17:32





@K.Ayoub coverage is based on bytecode instrumentation or other low level JDK features. Try downgrading to 8 or 9 and see if it helps with this particular plugin.
– Karol Dowbecki
Aug 10 at 17:33





I tried JDK 8 but same issue
– K. Ayoub
Aug 10 at 17:53



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.





The first radio box already selected, the shift+f9 didn't help.
– K. Ayoub
Aug 15 at 14:21





After running with coverage, press on debugging then it'll work.
– Ammar Ali
Aug 16 at 2:00



Try and go to


Run-->edit configurations-->select code coverage ( then you can select IDEA/EMMA/...)





Intellij Idea is selected by default.
– K. Ayoub
Aug 15 at 14:22






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard