Android studio code coverage not showing any Kotlin classes

Answer #1 100 %

Try to use JaCoco for coverage, this is a IntelliJ IDEA issue: Kotlin inline keyword causing IntelliJ IDEA Coverage reporting 0%

How to use JaCoco to get the coverage: Making Android Studio Test Coverage works


  1. Click on edit configurations

Edit configurations

  1. Go to Run/Debug Configurations -> Defaults -> Android JUnit -> Code Coverage

Code coverage configuration

  1. Choose coverage Runner: Select JaCoCo

  2. Apply -> OK

  3. Run your test again and voila you will get the coverage

You’ll also like:

© 2023 -