Ejemplo n.º 1
0
        private void ShowReportHeader(ReportSet reports)
        {
            Outputter.OutputEmphasised("Test Results Summary:", ConsoleColor.Cyan);
            Outputter.Output("Test Suite: " + reports.SuiteName);
            Outputter.Output("Duration: " + DateSupport.ToString(reports.Duration));

            Outputter.Output("Suite Result: " + reports.OverallResult, Compare.CompareResultHelper.GetResultAsConsoleColor(reports.OverallResult));
            Outputter.Output(reports.CountTestsPassed + " of " + reports.CountTests + " tests passed.");
        }
Ejemplo n.º 2
0
        private void WriteReportHeadingHtml(StreamWriter sw, ReportSet reports, string suiteName)
        {
            sw.Write(_htmlSupport.GetTagStart("table"));

            WriteHtmlRow(sw, _htmlSupport.GetEmphasisedText("screenium Test Suite Results:"), "");
            WriteHtmlRow(sw, "Test Suite:", suiteName);
            WriteHtmlRow(sw, "Created: ", DateSupport.ToString(reports.Created));
            WriteHtmlRow(sw, "Duration: ", DateSupport.ToString(reports.Duration));
            WriteHtmlRow(sw, "Suite Result: ", _htmlSupport.GetHtmlColoredForResult(reports.OverallResult, reports.OverallResult.ToString()));

            var resultHtml = reports.CountTestsPassed + " of " + reports.CountTests + " tests passed.";

            WriteHtmlRow(sw, "Tests Passed: ", resultHtml);

            sw.Write(_htmlSupport.GetTagEnd("table"));
        }
Ejemplo n.º 3
0
 internal void SetTemplateParam(string templateParam, TimeSpan value)
 {
     SetTemplateParam(templateParam, DateSupport.ToString(value));
 }