Registry / testing / org-jacoco-agent

org-jacoco-agent

JSON →
library0.8.14javamavenunverified

Java code coverage agent for collecting execution data during test runs.

<dependency> <groupId>org.jacoco</groupId> <artifactId>org.jacoco.agent</artifactId> <version>0.8.14</version> </dependency>
INSTALL
IMPORT
SIG · ORG-JACOCO-AGENT
O
org-jacoco-agent
testingjavav0.8.14
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

IAgent
org.jacoco.agent.rt.IAgent

Obtains the JaCoCo runtime agent and dumps execution data.

import org.jacoco.agent.rt.IAgent; import org.jacoco.agent.rt.RT; IAgent agent = RT.getAgent(); agent.dump(true);
Debug
Known issues
gotchaThe agent must be attached as a JVM argument; programmatic usage requires the runtime agent to be active.
fix
Add -javaagent:jacocoagent.jar to JVM arguments when running tests.
affects: >=0.8.0
Upgrade
Version history
0.8.14latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
org-jacoco-agent — mvn dependency:get org-jacoco-agent · libregistry