Code coverage with manual testing on android studio with Jacoco and Java Agent

14 views
Skip to first unread message

Victor X

unread,
Jun 12, 2024, 5:05:06 PM (12 days ago) Jun 12
to JaCoCo and EclEmma Users
Hi everyone,

I'm trying to implement Jacoco into my android studio app and get manual testing code coverage data with it using the Java Agent. Has anyone done this or know how to do/approach this? I don't believe Maven/Ant allow manual testing, not sure about Gradle but trying to avoid if possible.

What i've seen so far is that you must add a Java Agent to get the data but when I run: 
java -javaagent:/path/jacocoagent.jar
I get an error saying 
Error occurred during initialization of VM
agent library failed Agent_OnLoad: instrument

Any help would be appreciated!


Reply all
Reply to author
Forward
0 new messages