public void TestFinished(TestResult testResult) { switch (testResult.ResultState) { case ResultState.Error: case ResultState.Failure: case ResultState.Cancelled: var failure = new AutoTest.TestRunners.Shared.Results.TestResult("NUnit", currentAssembly, getFixture(testResult.Test.TestName.FullName), testResult.Time * 1000, testResult.Test.TestName.FullName, TestRunners.Shared.Results.TestState.Failed, testResult.Message); failure.AddStackLines(getStackLines(testResult).ToArray()); _results.Add(failure); _channel.TestFinished(failure); break; case ResultState.Success: var success = new AutoTest.TestRunners.Shared.Results.TestResult("NUnit", currentAssembly, getFixture(testResult.Test.TestName.FullName), testResult.Time * 1000, testResult.Test.TestName.FullName, TestRunners.Shared.Results.TestState.Passed, testResult.Message); _results.Add(success); _channel.TestFinished(success); break; case ResultState.Inconclusive: case ResultState.Ignored: case ResultState.Skipped: case ResultState.NotRunnable: var ignoreResult = new AutoTest.TestRunners.Shared.Results.TestResult("NUnit", currentAssembly, getFixture(testResult.Test.TestName.FullName), testResult.Time * 1000, testResult.Test.TestName.FullName, TestRunners.Shared.Results.TestState.Ignored, testResult.Message); ignoreResult.AddStackLines(getStackLines(testResult).ToArray()); _results.Add(ignoreResult); _channel.TestFinished(ignoreResult); break; } }
public void TestFinished(TestResult testResult) { switch (testResult.ResultState) { case ResultState.Error: case ResultState.Failure: case ResultState.Cancelled: var result = new AutoTest.TestRunners.Shared.Results.TestResult("NUnit", currentAssembly, getFixture(testResult.Test.TestName.FullName), testResult.Time * 1000, testResult.Test.TestName.FullName, TestRunners.Shared.Results.TestState.Failed, testResult.Message); result.AddStackLines(getStackLines(testResult).ToArray()); _results.Add(result); break; case ResultState.Success: _results.Add(new AutoTest.TestRunners.Shared.Results.TestResult("NUnit", currentAssembly, getFixture(testResult.Test.TestName.FullName), testResult.Time * 1000, testResult.Test.TestName.FullName, TestRunners.Shared.Results.TestState.Passed, testResult.Message)); break; case ResultState.Inconclusive: case ResultState.Ignored: case ResultState.Skipped: case ResultState.NotRunnable: var ignoreResult = new AutoTest.TestRunners.Shared.Results.TestResult("NUnit", currentAssembly, getFixture(testResult.Test.TestName.FullName), testResult.Time * 1000, testResult.Test.TestName.FullName, TestRunners.Shared.Results.TestState.Ignored, testResult.Message); ignoreResult.AddStackLines(getStackLines(testResult).ToArray()); _results.Add(ignoreResult); break; } }
public void TestFinished(AutoTest.TestRunners.Shared.Results.TestResult result) { }
public void TestFinished(AutoTest.TestRunners.Shared.Results.TestResult result) { Console.WriteLine(result.State.ToString() + " " + result.TestName); }