czerny
czerny

Reputation: 16624

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

Run configurations are currently being redesigned

Actual run configurations

Gradle test run configuration

JUnit run configuration

Upvotes: 0

Views: 2876

Answers (1)

quickfix
quickfix

Reputation: 431

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

Upvotes: 1

Related Questions