Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to run code coverage for Java project in IntelliJ Idea

How to run test coverage build in Idea 2022.2.3 (currently the latest) for a Gradle managed Java project?

Run with Coverage toolbar button

The toolbar button "Run with Coverage" action is disabled and run configurations for both "Gradle" and "JUnit" task types doesn’t seem to contain any of Code coverage configuration tab and Modify options > Add Run Options > Coverage settings sub-menu referred in the documentation. The documentation also mentions

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Run configurations are currently being redesigned

Actual run configurations

Gradle test run configuration

JUnit run configuration

>Solution :

This should be present, but it looks like you Coverage plugin is disabled, check it in Preferences | Plugins | Code Coverage for Java

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading