acvtool icon indicating copy to clipboard operation
acvtool copied to clipboard

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

Open beishanyangjin opened this issue 1 year ago • 2 comments

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.

beishanyangjin avatar Aug 02 '24 07:08 beishanyangjin

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

pilgun avatar Aug 02 '24 10:08 pilgun

Thank you for explanation!

beishanyangjin avatar Aug 02 '24 10:08 beishanyangjin