Package com.vladium.emma.report

Examples of com.vladium.emma.report.reportTask


    emmaTask emma = new emmaTask();
    emma.setTaskName("emma");
    emma.setProject(mxtest.getProject());
    emma.init();
   
    reportTask report = (reportTask) emma.createReport();
    report.setTaskName("report");
    report.setProject(mxtest.getProject());
    report.init();

    MaxmlMap reportAttributes = mxtest.getBuild().getConfig().getTaskAttributes("emmareport");
    if (reportAttributes != null) {
      AttributeReflector.setAttributes(mxtest.getProject(), report, reportAttributes);
    }

    report.setSourcepathRef(new Reference(mxtest.getProject(), Key.compileSourcePath.referenceId()));
    XFileSet fileSet = new XFileSet();
    fileSet.setProject(mxtest.getProject());
    fileSet.setFile(mxtest.getEmmaData());
    report.addFileset(fileSet);
    report.createHtml().setOutfile(new File(mxtest.getCoverageReports(), "index.html").getAbsolutePath());
   
    emma.execute();
  }
View Full Code Here

TOP

Related Classes of com.vladium.emma.report.reportTask

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.