Package com.flashdoctors.ant.testas.reporter

Examples of com.flashdoctors.ant.testas.reporter.IReporter


        throw new BuildException(t);
      }
    }

    //everything's good, publish the reports
    IReporter reporter = new AntReporter(getProject(), haltOnFail,
        haltOnError, failureProperty, errorProperty);

    for (ReportWriterElement tag : writerTags)
    {
      try
      {
        reporter.addReportWriter(tag.newWriterInstance());
      } catch (Exception e)
      {
        xmlSocket.shutdown();
        throw new BuildException("Error creating report writer "
            + tag.getClassname(), e, getLocation());
      }
    }

    if (showOutput)
    {
      reporter.addReportWriter(new AntLogWriter(this));
      log("===============================================");
      log("|              Unit Test Results              |");
      log("|     format: runs/fails/errors SuiteName     |");
      log("===============================================");
    }

    try
    {
      reporter.publishReport(handler.getJSONData());
    }
    catch (JSONException je)
    {
      xmlSocket.shutdown();
      System.out.println("Error parsing JSON Data:");
View Full Code Here

TOP

Related Classes of com.flashdoctors.ant.testas.reporter.IReporter

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.