Package org.cishell.testing.convertertester.core.tester2.util

Examples of org.cishell.testing.convertertester.core.tester2.util.FormatUtil


    //analyze the test results to extract more useful info
   
    Converter[] allConverters = converterGraph.getAllConverters();
   
    ChanceAtFaultHeuristic faultHeuristic =
      new ErrorProximityHeuristic();
    AllConvsResult allConvertersResult =
      ConvResultMaker.generate(allTestsResult, allConverters,
          faultHeuristic);
   
    //feed test results to the report generators
View Full Code Here


               new AllErrorReportGenerator(this.log);
             GraphReportGenerator origGraphGen        =
               new GraphReportGenerator(this.log);
             AnnotatedGraphReportGenerator graphGen   =
               new AnnotatedGraphReportGenerator(this.log);
             ReadMeReportGenerator         readmeGen  =
               new ReadMeReportGenerator(this.log);
            
             /*
              * execute the tests, and provide the results to the
              * report generators
              */
            
             System.out.println("Executing tests...");
            
             ConverterTester2 ct = new ConverterTester2(log);
        
             if (testAllConvs) {
               ct.execute(convRefs,
                   new ReportGenerator[]
                      {allGen, allConvGen, allErrGen,
                   graphGen, origGraphGen, readmeGen},
                   cContext, bContext,
                   new HopFilter(numHops));
             } else {
               ct.execute(convRefs,
                   new ReportGenerator[]
                      {allGen, allConvGen, allErrGen,
                   graphGen, origGraphGen, readmeGen},
                   cContext, bContext,
                   new ConvAndHopFilter(selectedConvName, numHops));
             }
             /*
              * report generators have now been supplied with the test
              * results, and their reports can now be extracted.
              */
            
             System.out.println("Returning reports...");
            
             //return readme report
            
             ReadMeReport readmeReport = readmeGen.getReadMe();
             File readmeFile = readmeReport.getReportFile();
             Data readMeData = createReportData(readmeFile,
                 readmeReport.getName(), null);
             addReturn(readMeData);
            
View Full Code Here

                 readmeReport.getName(), null);
             addReturn(readMeData);
            
             //return all converters report
            
             AllConvsReport allConvReport =
               allConvGen.getAllConvsReport();
             File allConvReportFile = allConvReport.getReport();
             Data allConvReportData =
               createReportData(allConvReportFile,
                   allConvReport.getName(),
                 null);
             addReturn(allConvReportData);
            
             ConvReport[] convReports =
               allConvReport.getConverterReports();
             for (int ii = 0; ii < convReports.length; ii++) {
               ConvReport convReport = convReports[ii];
               File convReportFile = convReport.getReport();
               Data convReportData =
                 createReportData(convReportFile,
View Full Code Here

     
      ConvReport[] convReports =
        (ConvReport[]) convReportsList.toArray(new ConvReport[0]);
         
      this.allConvsReport =
        new AllConvsReport(reportFile, convReports,
            "All Converters Report");
     
      report.flush();
     
      reportOutStream.close();
View Full Code Here

               allReport.getFailedTestReports();
             addFilePasses(fTestReports, allReportData);
            
             //return all errors report
            
             AllErrorReport allErrorReport =
               allErrGen.getAllErrorsReport();
             File allErrReportFile = allErrorReport.getReportFile();
             Data allErrReport = createReportData(allErrReportFile,
                 allErrorReport.getName(), null);
             addReturn(allErrReport);
            
            
             //return annotated graph report
            
View Full Code Here

      }
      report.flush();
     
      reportOutStream.close();
     
      this.allErrorsReport = new AllErrorReport(reportFile,
          "All Errors Report");
     
    } catch (IOException e) {
     
      this.log.log(LogService.LOG_ERROR, "Unable to generate all converters report.", e);
View Full Code Here

               addFilePasses(trs, convReportData);
             }
            
             //return all tests report
            
             AllTestsReport allReport = allGen.getAllTestsReport();
             File allReportFile = allReport.getAllTestsReport();
             Data allReportData = createReportData(allReportFile,
                 allReport.getName() , null);
             addReturn(allReportData);
            
             TestReport[] sTestReports =
               allReport.getSuccessfulTestReports();
             addFilePasses(sTestReports, allReportData);
            
             TestReport[] ppTestReports =
               allReport.getPartialSuccessTestReports();
             addFilePasses(ppTestReports, allReportData);
            
             TestReport[] fTestReports =
               allReport.getFailedTestReports();
             addFilePasses(fTestReports, allReportData);
            
             //return all errors report
            
             AllErrorReport allErrorReport =
View Full Code Here

        TestReport testReport = testResultSubGen.getTestReport();
       
        failedTRReports.add(testReport);
      }
     
      this.allTestsReport = new AllTestsReport(reportFile,
        "All Test Reports",
        (TestReport[]) passedTRReports.toArray(new TestReport[0]),
        (TestReport[]) pPassedTRReports.toArray(new TestReport[0]),
        (TestReport[]) failedTRReports.toArray(new TestReport[0]));
    } catch (IOException e) {
View Full Code Here

             addReturn(allConvReportData);
            
             ConvReport[] convReports =
               allConvReport.getConverterReports();
             for (int ii = 0; ii < convReports.length; ii++) {
               ConvReport convReport = convReports[ii];
               File convReportFile = convReport.getReport();
               Data convReportData =
                 createReportData(convReportFile,
                     convReport.getName(), allConvReportData);
               addReturn(convReportData);
              
               TestReport[] trs = convReport.getTestReports();
               addFilePasses(trs, convReportData);
             }
            
             //return all tests report
            
View Full Code Here

        report.println("");
        report.println("Consult the Annotated Graph Report for details on why this");
        report.println("may not be testable.");
      }
     
      this.convReport = new ConvReport(reportFile, new TestReport[0],
          cr.getShortNameWithCorrectness());
     
      report.println("");
      report.flush();
      reportOutStream.close();
View Full Code Here

TOP

Related Classes of org.cishell.testing.convertertester.core.tester2.util.FormatUtil

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.