33

There is a Run with Coverage button in Android Studio (Check attached image) , but it's always disabled, how can I enabled it?

enter image description here

AVEbrahimi
  • 17,993
  • 23
  • 107
  • 210

1 Answers1

38

You need to run a "junit" run configuration, like this one

AS junit run configuration

Only apply when you pass your unit tests

ffgiraldez
  • 722
  • 7
  • 16