public void AddUnitTestQuery(UnitTestData unitTestData, TimeSpan elapsed, bool isJenkins) { AddUnitTestQuery(_unitTestEntityUtil, unitTestData, elapsed); if (isJenkins) { AddUnitTestQuery(_unitTestEntityUtilJenkins, unitTestData, elapsed); } }
private static void AddUnitTestQuery(CounterUtil<UnitTestCounterEntity> util, UnitTestData unitTestData, TimeSpan elapsed) { util.Update(entity => { entity.AssemblyCount++; entity.TestsPassed += unitTestData.Passed; entity.TestsFailed += unitTestData.Failed; entity.TestsSkipped += unitTestData.Skipped; entity.ElapsedSeconds += (long)elapsed.TotalSeconds; }); }
public TestResult( int exitCode, string outputStandard, string outputError, string resultsFileName, string resultsFileContent, UnitTestData unitTestData, TimeSpan elapsed) { ExitCode = exitCode; OutputStandard = outputStandard; OutputError = outputError; ResultsFileName = resultsFileName; ResultsFileContent = resultsFileContent; UnitTestData = unitTestData; Elapsed = elapsed; }
public TestResult( int exitCode, string outputStandard, string outputError, string resultsFileName, string resultsFileContent, UnitTestData unitTestData, TimeSpan elapsed) { ExitCode = exitCode; OutputStandard = outputStandard; OutputError = outputError; ResultsFileName = resultsFileName; ResultsFileContent = resultsFileContent; UnitTestData = unitTestData; Elapsed = elapsed; }