private void OnTestPassed(TestPassedInfo info) { lock (this.announcementLock) { this.announcer(Invariant($" ^ [PASS] {info.TestDisplayName}: Passed.")); } }
private void OnTestPassed(TestPassedInfo obj) { var(startTime, endTime) = GetTestExecutionTime(obj.TestDisplayName, obj.ExecutionTime); OnTestCaseEnd(new TestEnd(obj.MethodName, obj.TypeName.Split('.').Last(), obj.TestDisplayName, obj.TestCollectionDisplayName, TestOutcome.Passed, startTime, endTime)); LogOutput(obj.Output); }
void TestPassedHandler(TestPassedInfo obj) { adapter.AddResult(new TestResultInfo { Passed = true, DisplayName = obj.TestDisplayName }); }
static void OnTestPassed(TestPassedInfo info) { lock (consoleLock) { } result = 1; }
private static void OnTestPassed(TestPassedInfo info) { lock (ConsoleLock) { Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine($"[PASS] {info.TestDisplayName}"); Console.ResetColor(); } }
private static void OnTestPassed(TestPassedInfo info) { lock (LoggerLock) { Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine($"[PASSED] {info.TestDisplayName}: {Math.Round(info.ExecutionTime, 3)}s"); Console.ResetColor(); } }
/// <summary> /// 单项测试通过时 /// </summary> public void OnTestPassed(TestPassedInfo info) { var assemblyName = info.Runner.Assembly.GetName().Name; var webTesterManager = Application.Ioc.Resolve <WebTesterManager>(); webTesterManager.UpdateInformation(assemblyName, testInfo => { testInfo.Counter.Passed += 1; testInfo.Updated(); }); }
private void OnTestPassed(TestPassedInfo info) { _results.Add(new TestResult { FullName = $"{info.TypeName}.{info.MethodName}", InnerText = string.Empty, IsSuccess = true, Name = info.MethodName }); }
private static void OnTestPassed(TestPassedInfo info) { lock (ConsoleLock) { ++_testsRun; Console.ForegroundColor = PassColor; Console.Write("."); // terse console output for a passed test with detail going to log only WriteLineLogOnly($"... {_testsRun,3}/{_discoveryInfo.TestCasesToRun} [PASS] {info.TestDisplayName}"); } }
void OnTestPassed(TestPassedInfo info) { if (settingEnv.Console) { lock (consoleLock) Console.WriteLine("[Passed] {0} / {1}", info.TestDisplayName, info.MethodName); } // passed.Add(info.TestDisplayName); }
void TestPassed(TestPassedInfo tpi) { if (verbose) { ConsoleEx.writeLine(ConsoleColor.Green, "{0} - passed", tpi.TestDisplayName); } else { ConsoleEx.write(ConsoleColor.Green, "."); } }
internal static MethodTestResult FromSuccess(TestPassedInfo info, HashSet <string>?points = default) { return(new MethodTestResult() { Passed = true, Name = info.TestDisplayName, Points = points ?? MethodTestResult.EMPTY_HASH_SET }); }
private static void OnTestPassed(TestPassedInfo info) { lock (consoleLock) { telemetryClient.TrackTrace($"[PASS] {info.TestDisplayName}", SeverityLevel.Information); if (info.Output != "") { telemetryClient.TrackTrace(info.Output, SeverityLevel.Information); } } }
private static void OnTestPassed(TestPassedInfo info) { lock (ConsoleLock) { Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("[SUCCESS] {0}", info.TestDisplayName); Console.ResetColor(); } _result = 1; }
public void OnTestPassed(TestPassedInfo testPassedInfo) { var testResult = new TestResult() { PartitionKey = _partitionKey, RowKey = testPassedInfo.TestDisplayName, ExecutionTime = (double)testPassedInfo.ExecutionTime, Status = "Passed" }; _collector.Add(testResult); }
protected void AssertsTestAddPassedTest(TestPassedInfo info) { var assemblyLocation = "abc.dll"; var sut = new Result(assemblyLocation); Assert.Empty(sut.PassedTests); sut.AddPassedTest(info); #if NET35 Assert.Equal(1, sut.PassedTests.Count); #else Assert.Single(sut.PassedTests); #endif Assert.Contains(info, sut.PassedTests); var actual = sut.PassedTests.First(); Assert.Equal(info.MethodName, actual.MethodName); Assert.Equal(info.TestCollectionDisplayName, actual.TestCollectionDisplayName); Assert.Equal(info.TestDisplayName, actual.TestDisplayName); Assert.Equal(info.TypeName, actual.TypeName); Assert.Equal(info.ExecutionTime, actual.ExecutionTime); }
public void OnTestPassed(TestPassedInfo info) { }
private static void OnTestPassed(TestPassedInfo info) { lock (ConsoleLock) Console.WriteLine("[PASSED] {0}: {1}", info.TestDisplayName, info.ExecutionTime); }
void OnTestPassed(TestPassedInfo obj) => Result.Add(new TestExecutionViewModel(obj.TypeName, TestExecutionStatus.Passed));
public void OnTestPassed(TestPassedInfo info) { // do nothing }
private static void OnTestPassed(TestPassedInfo obj) { Console.WriteLine("Test Passed: " + obj.TestDisplayName); }
public void TestAddPassedTest(TestPassedInfo info) { this.AssertsTestAddPassedTest(info); }
private static void TestPassed(TestPassedInfo info) { Console.WriteLine(info.ToHumanString()); }
private static void OnTestPassed(TestPassedInfo info) { Log.Information($"[PASS] {info.TestDisplayName}"); }
public static string ToHumanString(this TestPassedInfo info) { return($"Name:{info.TestDisplayName}\nMethod:{info.MethodName}:ExecutionTime:{info.ExecutionTime}"); }