mardi 12 avril 2016

Generating test code coverage from commandline in Android Studio

Is there any possibility to generate Android Studio test coverage from gradle console? I tried using JaCoCo for generating test coverage but it seems to not working good since Android Studio have unit test support (it also have integrated JaCoCo plugin now, but it generates *.exec and not html/xml - i tried almost everything to get it done, seriously). Now Android Studio have feature which can show us coverage, but we need to do it from IDE and manualy save the report. Is there any possibility to do it from Gradle console? Also, im using Robolectric to avoid connecting my device to perform tests. So it would be nice to just do something like ./gradlew testReport. But is that possible?

Aucun commentaire:

Enregistrer un commentaire