Search code examples
androidunit-testingandroid-studiotest-coverage

Android: Code coverage tool using Android Studio


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.


Solution

  • 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.