Пример #1
0
        protected override bool Visit(ITestPassed testPassed)
        {
            AppVeyorLogger.UpdateTest(GetFinishedTestName(testPassed.Test.DisplayName), FrameworkName, assemblyFileName, "Passed",
                                      Convert.ToInt64(testPassed.ExecutionTime * 1000), null, null, testPassed.Output, null);

            return(base.Visit(testPassed));
        }
Пример #2
0
        protected override bool Visit(ITestSkipped testSkipped)
        {
            AppVeyorLogger.UpdateTest(GetFinishedTestName(testSkipped.Test.DisplayName), FrameworkName, assemblyFileName, "Skipped",
                                      Convert.ToInt64(testSkipped.ExecutionTime * 1000), null, null, null, null);

            lock (consoleLock)
            {
                Console.WriteLine("   {0} [SKIP]", Escape(testSkipped.Test.DisplayName));
                Console.WriteLine("      {0}", Escape(testSkipped.Reason));
            }

            return(base.Visit(testSkipped));
        }
Пример #3
0
        protected override bool Visit(ITestFailed testFailed)
        {
            AppVeyorLogger.UpdateTest(GetFinishedTestName(testFailed.Test.DisplayName), FrameworkName, assemblyFileName, "Failed",
                                      Convert.ToInt64(testFailed.ExecutionTime * 1000), ExceptionUtility.CombineMessages(testFailed),
                                      ExceptionUtility.CombineStackTraces(testFailed), testFailed.Output, null);

            lock (consoleLock)
            {
                Console.WriteLine("   {0} [FAIL]", Escape(testFailed.Test.DisplayName));
                Console.WriteLine("      {0}", Escape(ExceptionUtility.CombineMessages(testFailed)));

                WriteStackTrace(ExceptionUtility.CombineStackTraces(testFailed));
            }

            return(base.Visit(testFailed));
        }