Reputation: 951
Does anybody knows how to run tests with coverage using Gradle in IntelliJ IDEA? It seems that the option is missing from contextual menu and if invoked from left side of the screen the following problem is reported:
Error running **TestClass**
Cannot find runner for **TestClass**
No Gradle targets are run before import and Build, Execution, Deployment > Build Tools > Gradle > Runner > Delegate IDE build/run actions to gradle option is enabled.
Upvotes: 8
Views: 4860
Reputation: 401877
Code coverage is not supported for Gradle test runner in IntelliJ IDEA at the moment, please follow the related request for updates:
Upvotes: 7