1

I have written test cases for iOS and there we have

XcodeCoverage

for finding out the code coverage. Now, I wish to do same for my android test cases. Is there any tool compatible with Android Studio itself?
Any suggestions/ reference links would be helpful.

AnswerDroid
  • 1,873
  • 2
  • 33
  • 52

2 Answers2

7

using Android Studio 1.4 (and probably 1.1+), you have the ability to get the coverage while running your tests without additional plugins.

overview

If you can't see the Run 'All Tests' with coverage button, you can find out why here.

Mahmoud Abou-Eita
  • 933
  • 1
  • 8
  • 17
0

You can use JaCoCo plugin, which is fairly new, but in general does the job more than enough. You can get more details about it here : Android test code coverage with JaCoCo Gradle plugin

Community
  • 1
  • 1
MasterJohn
  • 439
  • 4
  • 17