public void GenerateNUnitExecutionReportWithoutProjectFile()
 {
     var reportParameters = new NUnitExecutionReportParameters(
                             "Test Project", 
                             @"TestFiles\TestResult.xml", 
                             @"TestFiles\TestResult.txt", 
                             "TestResult.html");
     var generator = new NUnitExecutionReportGenerator(reportParameters);
     generator.GenerateAndTransformReport();
 }
Exemplo n.º 2
0
 public static void NUnitExecutionReport(
     [Required] string projectFile,
     [Optional("TestResult.xml")] string xmlTestResult,
     [Optional("TestResult.txt", "testOutput")] string labeledTestOutput,
     [Optional("TestResult.html", "out")] string outputFile
     )
 {
     NUnitExecutionReportGenerator generator = new NUnitExecutionReportGenerator(
         projectFile,
         Path.GetFullPath(xmlTestResult),
         Path.GetFullPath(labeledTestOutput));
     generator.GenerateReport();
     generator.TransformReport(Path.GetFullPath(outputFile));
 }