pilgun / acvtool

ACVTool (Android Code Coverage Tool) is a tool to measure fine-grained code coverage of 3rd-party Android apps.
Apache License 2.0
105 stars 30 forks source link

What's the diff between coverage generated by Jacoco and ACVTool? #42

Open beishanyangjin opened 3 months ago

beishanyangjin commented 3 months ago

I test both of the tools in the Activitydiary (https://github.com/ramack/ActivityDiary), but they got great differences under same test sequences. I got about 50% instruction coverage from Jacoco but only 16% by ACVTool. I know they work in different conditions but i wonder why there is a huge gap here.

pilgun commented 3 months ago

JaCoCo only counts coverage for the present Java code developed by you. ACVTool measures the whole APK codebase including the libraries that you usually add as dependencies in your app/build.gradle

beishanyangjin commented 3 months ago

Thank you for explanation!