Ejemplo n.º 1
0
        public bool TestFinished(TestMethod method)
        {
            TestResult result = method.RunResults[method.RunResults.Count - 1];

            TestPassedResult passedResult = result as TestPassedResult;

            if (passedResult != null)
            {
                TestPassed(method, passedResult);
            }
            else
            {
                TestFailedResult failedResult = result as TestFailedResult;
                if (failedResult != null)
                {
                    TestFailed(method, failedResult);
                }
                else
                {
                    TestSkippedResult skippedResult = result as TestSkippedResult;
                    if (skippedResult != null)
                    {
                        TestSkipped(method, skippedResult);
                    }
                }
            }

            return(TestFinished(method, result));
        }
Ejemplo n.º 2
0
 protected override void TestSkipped(TestMethod method, TestSkippedResult result)
 {
     Console.WriteLine(
         "##teamcity[testIgnored name='{0}' message='{1}']",
         Escape(method.DisplayName),
         Escape(result.Reason)
         );
 }
Ejemplo n.º 3
0
 protected override void TestSkipped(TestMethod method, TestSkippedResult result)
 {
     Console.WriteLine(
         "##teamcity[testIgnored name='{0}' message='{1}']",
         Escape(method.DisplayName),
         Escape(result.Reason)
     );
 }
Ejemplo n.º 4
0
        void TestSkipped(TestSkippedResult testResult)
        {
            if (progress.Status != ProgressControl.ProgressStatus.Failing)
            {
                progress.Status = ProgressControl.ProgressStatus.Skipping;
            }

            textResults.Text += testResult.DisplayName + " : " + testResult.Reason + Environment.NewLine + Environment.NewLine;
        }
        protected override void TestSkipped(TestMethod testMethod, TestSkippedResult result)
        {
            if (!silent)
            {
                Console.Write("\r");
            }

            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine("{0} [SKIP]", result.DisplayName);
            Console.ResetColor();

            Console.WriteLine(Indent(result.Reason));
            Console.WriteLine();
        }
Ejemplo n.º 6
0
        private void TestSkipped(TestSkippedResult testResult)
        {
            // CCHINN: Add support for skipped tests.
            //var result = JsonConvert.DeserializeObject<Models.TestResult>(testResult.Output);
            //var testResultViewModel = new TestResultViewModel
            //{
            //    Status = result.Status,
            //    Name = result.Test.Name,
            //        Url = result.Url,
            //    ResultOutput = testResult.Reason,
            //};

            //var collectionName = result.Test.CollectionName;

            //AddResult(collectionName, testResultViewModel);
        }
Ejemplo n.º 7
0
        void TestSkipped(TestSkippedResult testResult)
        {
            if (progress.Status != ProgressControl.ProgressStatus.Failing)
                progress.Status = ProgressControl.ProgressStatus.Skipping;

            textResults.Text += testResult.DisplayName + " : " + testResult.Reason + Environment.NewLine + Environment.NewLine;
        }
Ejemplo n.º 8
0
        protected override void TestSkipped(TestMethod testMethod, TestSkippedResult result)
        {
            if (!silent)
                Console.Write("\r");

            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine("{0} [SKIP]", result.DisplayName);
            Console.ResetColor();

            Console.WriteLine(Indent(result.Reason));
            Console.WriteLine();
        }
Ejemplo n.º 9
0
 protected virtual void TestSkipped(TestMethod method, TestSkippedResult result)
 {
 }
Ejemplo n.º 10
0
 protected virtual void TestSkipped(TestMethod method, TestSkippedResult result)
 {
 }