• Home
Name Date Size #Lines LOC

..--

.azure-pipelines/03-May-2024-112110

.github/03-May-2024-8455

.travis/03-May-2024-1815

jacoco/03-May-2024-267235

jacoco-maven-plugin/03-May-2024-2,4711,297

jacoco-maven-plugin.test/03-May-2024-4,1122,467

org.jacoco.agent/03-May-2024-366242

org.jacoco.agent.rt/03-May-2024-1,869919

org.jacoco.agent.rt.test/03-May-2024-2,5241,805

org.jacoco.agent.test/03-May-2024-187139

org.jacoco.ant/03-May-2024-1,8871,036

org.jacoco.ant.test/03-May-2024-1,9681,351

org.jacoco.build/03-May-2024-1,5411,382

org.jacoco.cli/03-May-2024-1,368899

org.jacoco.cli.test/03-May-2024-1,115760

org.jacoco.core/03-May-2024-15,1507,530

org.jacoco.core.test/03-May-2024-20,40314,172

org.jacoco.core.test.validation/03-May-2024-370324

org.jacoco.core.test.validation.groovy/03-May-2024-744475

org.jacoco.core.test.validation.java14/03-May-2024-404240

org.jacoco.core.test.validation.java5/03-May-2024-3,1691,842

org.jacoco.core.test.validation.java7/03-May-2024-545386

org.jacoco.core.test.validation.java8/03-May-2024-680343

org.jacoco.core.test.validation.kotlin/03-May-2024-1,434637

org.jacoco.core.test.validation.scala/03-May-2024-292148

org.jacoco.doc/03-May-2024-13,90612,862

org.jacoco.examples/03-May-2024-1,8271,081

org.jacoco.examples.test/03-May-2024-535386

org.jacoco.report/03-May-2024-8,8674,699

org.jacoco.report.test/03-May-2024-7,9665,515

org.jacoco.tests/03-May-2024-9474

.appveyor.ymlD03-May-2024735 1813

.gitattributesD03-May-2024152 98

.gitignoreD03-May-2024129 87

Android.bpD03-May-20246.3 KiB216187

FETCH_HEADD03-May-20240

LICENSE.mdD03-May-2024673 1511

METADATAD03-May-2024348 2019

MODULE_LICENSE_EPLD03-May-20240

NOTICED03-May-2024681 1511

OWNERSD03-May-2024141 43

README.androidD03-May-20241.6 KiB2722

README.mdD03-May-20241.2 KiB1813

config.mkD03-May-2024654 171

pom.xmlD03-May-2024439 1410

README.android

1We build an equivalent of the jacoco-agent.jar which contains classes from org.jacoco.core,
2org.jacoco.agent and org.jacoco.agent.rt packages but also classes from asm 5.0.1.
3
4However, Jacoco depends on classes that do not exist in Android (java.lang.instrument.* or
5javax.management.*) for runtime instrumentation only. The ART compiler would reject those classes
6when they are either in the bootclasspath (core, frameworks, ...) or system apps.
7
8Since we only use offline instrumentation for code coverage (using Jack) and do not execute these
9classes at runtime, we simply not compile them here.
10
11We also need to modify the source code to cut dependencies to the classes that we exclude from the
12compilation. The changes are surrounded by "BEGIN android-change" and "END android-change". Here
13is the list of the changes:
14
151) Remove the creation of JmxRegistration in org.jacoco.agent.rt.internal.Agent.
162) Change default OutputMode to none in org.jacoco.core.runtime.AgentOptions
173) Change the runtime to reduce dependencies on core libraries.
18   Previously, Offline's static initializer would eagerly create an
19   Agent, a process which has lots of dependencies. With this change,
20   Offline only eagerly creates a Map<Long, ExecutionData>, which is much
21   more lightweight. The Agent is only created when it's actually
22   needed. This makes it possible to instrument a lot of more core
23   libraries without creating a circular dependency at runtime.
244) Disable use of 'constant dynamic' bytecode in
25   org.jacoco.core.internal.instr.ProbeArrayStrategyFactory, because R8/D8 doesn't support it.
26   (https://issuetracker.google.com/178172809)
27

README.md

1JaCoCo Java Code Coverage Library
2=================================
3
4[![Build Status](https://dev.azure.com/jacoco-org/JaCoCo/_apis/build/status/JaCoCo?branchName=master)](https://dev.azure.com/jacoco-org/JaCoCo/_build/latest?definitionId=1&branchName=master)
5[![Build status](https://ci.appveyor.com/api/projects/status/g28egytv4tb898d7/branch/master?svg=true)](https://ci.appveyor.com/project/JaCoCo/jacoco/branch/master)
6[![Maven Central](https://img.shields.io/maven-central/v/org.jacoco/jacoco.svg)](http://search.maven.org/#search|ga|1|g%3Aorg.jacoco)
7
8JaCoCo is a free Java code coverage library distributed under the Eclipse Public
9License. Check the [project homepage](http://www.jacoco.org/jacoco)
10for downloads, documentation and feedback.
11
12Please use our [mailing list](https://groups.google.com/forum/?fromgroups=#!forum/jacoco)
13for questions regarding JaCoCo which are not already covered by the
14[extensive documentation](http://www.jacoco.org/jacoco/trunk/doc/).
15
16Note: We do not answer general questions in the project's issue tracker. Please use our [mailing list](https://groups.google.com/forum/?fromgroups=#!forum/jacoco) for this.
17-------------------------------------------------------------------------
18