Tuesday, 20 April 2021

How to run JaCoCo in Android Studio for test coverage?

I like to use JaCoCo inside of Android Studio 4.2 RC1 instead of the default configured IntelliJ IDEA code coverage option. Therefore, I changed the relevant option in the run configuration:

enter image description here

In my debug build type I have testCoverageEnabled true configured (if needed at all?).

Once I run the "Run test with coverage" button in the IDE then the following failure shows up:

Task :app:testDebugUnitTest FAILED FAILURE: Build failed with an exception.

  • Where: Initialization script '/tmp/ijresolvers.gradle' line: 152
  • What went wrong: Execution failed for task ':app:testDebugUnitTest'.

Related



from How to run JaCoCo in Android Studio for test coverage?

No comments:

Post a Comment