Package org.apache.tools.ant.taskdefs.optional.junit

Examples of org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer


    XMLResultAggregator aggregator = new XMLResultAggregator();
    aggregator.setProject(project);
    aggregator.addFileSet(fs);
    aggregator.setTodir(new File("../"+CutlassConfig.XML_TEST_RESULTS_DIR));
   
    AggregateTransformer transformer = aggregator.createReport();
    transformer.setTodir(new File("../"+CutlassConfig.HTML_TEST_RESULTS_DIR));   
    target.addTask(aggregator);
   
    logger.warn("Writing HTML reports to " + "../"+CutlassConfig.HTML_TEST_RESULTS_DIR + ".");
    project.executeTarget("junitreport");
  }
View Full Code Here


    fileSet.setProject(mxtest.getProject());
    fileSet.setDir(mxtest.getUnitTestOutputDir());
    fileSet.setIncludes("TEST-*.xml");    
    junitReport.addFileSet(fileSet);
   
    AggregateTransformer report = junitReport.createReport();
    // configure properties from Moxie file
    MaxmlMap reportAttributes = mxtest.getBuild().getConfig().getTaskAttributes("junitreport");
    if (reportAttributes != null) {
      AttributeReflector.setAttributes(mxtest.getProject(), report, reportAttributes);
    }
    report.setTodir(mxtest.getTestReports());
   
    junitReport.setTodir(mxtest.getUnitTestOutputDir());

    junitReport.execute();
  }
View Full Code Here

TOP

Related Classes of org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer

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.