From 7de938a635d3c6fc62497c83d450b691cf62596b Mon Sep 17 00:00:00 2001 From: Matthew Manela Date: Wed, 14 Nov 2018 08:06:30 -0800 Subject: [PATCH] fix build --- VS2012.TestAdapter/DiscoveryCallback.cs | 4 ++-- VS2012.TestAdapter/ExecutionCallback.cs | 12 +++++------ .../VisualStudioRunnerCallback.cs | 20 +++++++++---------- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/VS2012.TestAdapter/DiscoveryCallback.cs b/VS2012.TestAdapter/DiscoveryCallback.cs index 59bb77c2..06a83fab 100644 --- a/VS2012.TestAdapter/DiscoveryCallback.cs +++ b/VS2012.TestAdapter/DiscoveryCallback.cs @@ -16,7 +16,7 @@ public DiscoveryCallback(IMessageLogger logger, ITestCaseDiscoverySink discovery this.discoverySink = discoverySink; } - public override void FileError(TestError error) + public override void FileError(TestContext context, TestError error) { logger.SendMessage(TestMessageLevel.Error, GetFileErrorMessage(error)); } @@ -26,7 +26,7 @@ public override void ExceptionThrown(Exception exception, string fileName) logger.SendMessage(TestMessageLevel.Error, GetExceptionThrownMessage(exception, fileName)); } - public override void TestFinished(TestCase test) + public override void TestFinished(TestContext context, TestCase test) { var testCase = test.ToVsTestCase(); discoverySink.SendTestCase(testCase); diff --git a/VS2012.TestAdapter/ExecutionCallback.cs b/VS2012.TestAdapter/ExecutionCallback.cs index 0c08f14e..9c2b44f0 100644 --- a/VS2012.TestAdapter/ExecutionCallback.cs +++ b/VS2012.TestAdapter/ExecutionCallback.cs @@ -24,12 +24,12 @@ public ExecutionCallback(IFrameworkHandle frameworkHandle, IRunContext runContex this.runContext = runContext; } - public override void FileError(TestError error) + public override void FileError(TestContext context, TestError error) { frameworkHandle.SendMessage(TestMessageLevel.Error, GetFileErrorMessage(error)); } - public override void FileLog(TestLog log) + public override void FileLog(TestContext context, TestLog log) { frameworkHandle.SendMessage(TestMessageLevel.Informational, GetFileLogMessage(log)); } @@ -39,7 +39,7 @@ public override void ExceptionThrown(Exception exception, string fileName) frameworkHandle.SendMessage(TestMessageLevel.Error, GetExceptionThrownMessage(exception, fileName)); } - public override void TestStarted(TestCase test) + public override void TestStarted(TestContext context, TestCase test) { var testCase = test.ToVsTestCase(); @@ -48,7 +48,7 @@ public override void TestStarted(TestCase test) } - public override void TestFinished(TestCase test) + public override void TestFinished(TestContext context, TestCase test) { var testCase = test.ToVsTestCase(); var result = test.ToVsTestResult(); @@ -61,9 +61,9 @@ public override void TestFinished(TestCase test) frameworkHandle.RecordEnd(testCase, outcome); } - public override void TestSuiteFinished(TestCaseSummary testResultsSummary) + public override void TestSuiteFinished(TestContext context, TestCaseSummary testResultsSummary) { - base.TestSuiteFinished(testResultsSummary); + base.TestSuiteFinished(context, testResultsSummary); if(!runContext.IsDataCollectionEnabled || testResultsSummary.CoverageObject == null) { diff --git a/VisualStudioContextMenu/RunnerCallback/VisualStudioRunnerCallback.cs b/VisualStudioContextMenu/RunnerCallback/VisualStudioRunnerCallback.cs index c8b6f9ad..8f599a06 100644 --- a/VisualStudioContextMenu/RunnerCallback/VisualStudioRunnerCallback.cs +++ b/VisualStudioContextMenu/RunnerCallback/VisualStudioRunnerCallback.cs @@ -20,7 +20,7 @@ public VisualStudioRunnerCallback(DTE2 dte, IVsStatusbar statusBar) this.statusBar = statusBar; } - public override void TestSuiteStarted() + public override void TestSuiteStarted(TestContext context) { dte.ToolWindows.OutputWindow.Parent.Activate(); dte.ToolWindows.ErrorList.Parent.Activate(); @@ -31,7 +31,7 @@ public override void TestSuiteStarted() SetStatusBarMessage("Testing Started"); } - public override void TestSuiteFinished(TestCaseSummary testResultsSummary) + public override void TestSuiteFinished(TestContext context, TestCaseSummary testResultsSummary) { var statusBarText = ""; if (testResultsSummary.SkippedCount > 0) @@ -48,13 +48,13 @@ public override void TestSuiteFinished(TestCaseSummary testResultsSummary) SetStatusBarMessage(statusBarText); } - public override void FileStarted(string fileName) + public override void FileStarted(TestContext context) { - var text = string.Format("------ Test started: File: {0} ------\n", fileName); + var text = string.Format("------ Test started: File: {0} ------\n", context?.InputTestFilesString); testPane.OutputString(text); } - public override void FileFinished(string fileName, TestFileSummary testResultsSummary) + public override void FileFinished(TestContext context, TestFileSummary testResultsSummary) { var text = ""; @@ -69,29 +69,29 @@ public override void FileFinished(string fileName, TestFileSummary testResultsSu testPane.OutputString(text); } - protected override void TestFailed(TestCase result) + protected override void TestFailed(TestContext context, TestCase result) { var errorMessage = GetTestFailureMessage(result); WriteToOutputPaneAndErrorTaskList(result.InputTestFile, errorMessage, errorMessage, result.Line); SetStatusBarMessage(GetStatusBarMessage(result)); } - protected override void TestPassed(TestCase result) + protected override void TestPassed(TestContext context, TestCase result) { SetStatusBarMessage(GetStatusBarMessage(result)); } - protected override void TestSkipped(TestCase result) + protected override void TestSkipped(TestContext context, TestCase result) { SetStatusBarMessage(GetStatusBarMessage(result)); } - public override void FileError(TestError error) + public override void FileError(TestContext context, TestError error) { testPane.OutputString(GetFileErrorMessage(error)); } - public override void FileLog(TestLog log) + public override void FileLog(TestContext context, TestLog log) { testPane.OutputString(GetFileLogMessage(log)); }