0

In referring to the answer in How to get code coverage using Android Studio?, we could generate Junit Test coverage on Android Studio. I could even dump out the Coverage Report in HTML format using menu Analyze->GenerateCoverageReport...

I'm thinking of getting this run from command line to get the test run with Coverage, and automatically dump out the Coverage Report in a designated folder. Is there a command that I could do so? (I'm in a linux/mac environment)

2
  • Note that I could use ./gradlew test to run the test on command line. But this doesn't seems to run it with coverage nor dump out any coverage report. Commented Sep 29, 2015 at 6:50
  • use Jacoco, it works Commented Dec 28, 2015 at 12:38

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.