public class CodeCoverage
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CodeCoverage.CodeCoverageInfo
An instance of this class is produced by analyze(), and can be queried
for various coverage information at the moment analyze() is invoked.
|
static class |
CodeCoverage.CumulativeExecDataStore
A variation of Jacoco's standard ExecutionDataStore, which is cumulative.
|
Modifier and Type | Field and Description |
---|---|
JacocoInstrumenter |
instrumenter |
Constructor and Description |
---|
CodeCoverage(JacocoInstrumenter instrumenter)
Create an instance of code-coverage runtime tracking.
|
Modifier and Type | Method and Description |
---|---|
CodeCoverage.CodeCoverageInfo |
analyze()
Analyze the collected runtime data,and calculate coverage information.
|
void |
clear()
Clear the store raw runtime data, as well as the upper level coverage data stores.
|
void |
clearRawRTdata()
Clear the stored raw runtime data.
|
void |
collectRTdata()
This will merge/add raw runtime data of CUT's executions since
the last call to clearRawRTdata() (or since the start, if there
has been no such call), into the existing coverage data managed
by cumulativeExecDataStore.
|
CodeCoverage.CodeCoverageInfo |
getCoverageInfo() |
static void |
main(java.lang.String[] args) |
public JacocoInstrumenter instrumenter
public CodeCoverage(JacocoInstrumenter instrumenter) throws java.lang.Exception
java.lang.Exception
public void clear()
public void clearRawRTdata()
public void collectRTdata()
public CodeCoverage.CodeCoverageInfo analyze() throws java.io.IOException
java.io.IOException
public CodeCoverage.CodeCoverageInfo getCoverageInfo()
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception