简体   繁体   中英

JaCoCo Debug Coverage Test Report

I have a problem when test android to create coverage test report. I use ./gradlew createDebugCoverageReport command to create coverage report. Report is created but result of all tests are %0. First device is rooted but second device isn't. We use these two devices to test with spoon and look spoon output. So these two devices use together. Problem: When we run this command with first device(rooted device) all coverage tests result is created as expected but when we run tests with two devices together all coverage results are %0. How can I solve this problem.

Thanks

The JaCoCo works only on rooted devices or emulator.

See reference here How do I get a jacoco coverage report using Android gradle plugin 0.10.0 or higher?

Tip : Since you can only get a coverage report with the emulator and device with root permission

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM