use of org.jacoco.core.analysis.CoverageBuilder in project dspot by STAMP-project.
the class JacocoExecutor method coverageResults.
private CoverageResults coverageResults(ExecutionDataStore executionData) {
final String classesDirectory = this.program.getProgramDir() + "/" + this.program.getClassesDir();
final CoverageBuilder coverageBuilder = new CoverageBuilder();
final Analyzer analyzer = new Analyzer(executionData, coverageBuilder);
try {
analyzer.analyzeAll(new File(classesDirectory));
} catch (IOException e) {
throw new RuntimeException(e);
}
return new CoverageResults(coverageBuilder);
}
Aggregations