private void ReportFailedCount(int failedCount) { CarnaConsole.WriteItem("Failed: "); if (failedCount == 0) { CarnaConsole.WriteValue(failedCount); } else { CarnaConsole.WriteFailure(failedCount); } }
private void ReportPendingCount(int pendingCount) { CarnaConsole.WriteItem("Pending: "); if (pendingCount == 0) { CarnaConsole.WriteValue(pendingCount); } else { CarnaConsole.WritePending(pendingCount); } }
private void ReportExecutionTimeSummary(IList <FixtureResult> results) { var startTime = results.StartTime(); var endTime = results.EndTime(); CarnaConsole.WriteItem(" Start Time: "); CarnaConsole.WriteLineValue($"{startTime:u}"); CarnaConsole.WriteItem(" End Time: "); CarnaConsole.WriteLineValue($"{endTime:u}"); CarnaConsole.WriteItem(" Duration: "); CarnaConsole.WriteLineValue($"{(endTime - startTime).TotalSeconds:0.000} seconds"); CarnaConsole.WriteLine(); }
private void ReportRunSummary(IList <FixtureResult> results) { CarnaConsole.WriteLineHeader("Run Summary"); CarnaConsole.WriteItem(" "); ReportTotalCount(results.TotalCount()); CarnaConsole.WriteItem(", "); ReportPassedCount(results.PassedCount()); CarnaConsole.WriteItem(", "); ReportPendingCount(results.PendingCount()); CarnaConsole.WriteItem(", "); ReportFailedCount(results.FailedCount()); CarnaConsole.WriteLine(); }
private void ReportPassedCount(int passedCount) { CarnaConsole.WriteItem("Passed: "); CarnaConsole.WriteValue(passedCount); }
private void ReportTotalCount(int totalCount) { CarnaConsole.WriteItem("Total Count: "); CarnaConsole.WriteValue(totalCount); }