Home > Back-end >  How to run code coverage for Java project in IntelliJ Idea
How to run code coverage for Java project in IntelliJ Idea

Time:10-15

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 Gradle test run configuration

JUnit run configuration

CodePudding user response:

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

  • Related