Search in sources :

Example 1 with ReportGenerator

use of org.wso2.carbon.automation.engine.frameworkutils.ReportGenerator in project product-iots by wso2.

the class CarbonServerManagerExtension method generateCoverageReport.

private void generateCoverageReport(File classesDir) throws IOException, AutomationFrameworkException {
    checkJacocoDataFileSizes(FrameworkPathUtil.getJacocoCoverageHome());
    CodeCoverageUtils.executeMerge(FrameworkPathUtil.getJacocoCoverageHome(), FrameworkPathUtil.getCoverageMergeFilePath());
    ReportGenerator reportGenerator = new ReportGenerator(new File(FrameworkPathUtil.getCoverageMergeFilePath()), classesDir, new File(CodeCoverageUtils.getJacocoReportDirectory()), (File) null);
    reportGenerator.create();
    log.info("Jacoco coverage dump file path : " + FrameworkPathUtil.getCoverageDumpFilePath());
    log.info("Jacoco class file path : " + classesDir);
    log.info("Jacoco coverage HTML report path : " + CodeCoverageUtils.getJacocoReportDirectory() + File.separator + "index.html");
}
Also used : ReportGenerator(org.wso2.carbon.automation.engine.frameworkutils.ReportGenerator) File(java.io.File)

Aggregations

File (java.io.File)1 ReportGenerator (org.wso2.carbon.automation.engine.frameworkutils.ReportGenerator)1