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)); }
protected override void TestSkipped(TestMethod method, TestSkippedResult result) { Console.WriteLine( "##teamcity[testIgnored name='{0}' message='{1}']", Escape(method.DisplayName), Escape(result.Reason) ); }
protected override void TestSkipped(TestMethod method, TestSkippedResult result) { Console.WriteLine( "##teamcity[testIgnored name='{0}' message='{1}']", Escape(method.DisplayName), Escape(result.Reason) ); }
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(); }
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); }
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(); }
protected virtual void TestSkipped(TestMethod method, TestSkippedResult result) { }
protected virtual void TestSkipped(TestMethod method, TestSkippedResult result) { }