From aabdb0ed3ee0bb0cc9e49ae80a1bb60f6c50af78 Mon Sep 17 00:00:00 2001 From: Joey Robichaud Date: Tue, 28 Jul 2020 17:36:52 -0700 Subject: [PATCH] Switch to Arcade UnitTest targets and props --- .../Directory.Build.props | 15 +-- .../Directory.Build.targets | 5 +- .../tools/MSTest/MSTest.props | 2 - .../tools/MSTest/MSTest.targets | 99 ------------------- .../tools/NUnit/NUnit.props | 4 - .../tools/NUnit/NUnit.targets | 98 ------------------ .../Directory.Build.targets | 2 +- 7 files changed, 6 insertions(+), 219 deletions(-) delete mode 100644 tests/Microsoft.CodeAnalysis.Testing/tools/MSTest/MSTest.props delete mode 100644 tests/Microsoft.CodeAnalysis.Testing/tools/MSTest/MSTest.targets delete mode 100644 tests/Microsoft.CodeAnalysis.Testing/tools/NUnit/NUnit.props delete mode 100644 tests/Microsoft.CodeAnalysis.Testing/tools/NUnit/NUnit.targets diff --git a/tests/Microsoft.CodeAnalysis.Testing/Directory.Build.props b/tests/Microsoft.CodeAnalysis.Testing/Directory.Build.props index e520741fa..dd795d4f0 100644 --- a/tests/Microsoft.CodeAnalysis.Testing/Directory.Build.props +++ b/tests/Microsoft.CodeAnalysis.Testing/Directory.Build.props @@ -1,5 +1,5 @@ - + $(NoWarn);NU5125;NU3005 @@ -8,16 +8,12 @@ - - true - false + MSTest - - true - false + NUnit @@ -37,9 +33,6 @@ 3.15.1 - - - netcoreapp3.1;net472;net46;netcoreapp1.1;netcoreapp2.0 @@ -71,7 +64,7 @@ true $(MSBuildThisFileDirectory)..\..\RoslynSDK.ruleset - + diff --git a/tests/Microsoft.CodeAnalysis.Testing/Directory.Build.targets b/tests/Microsoft.CodeAnalysis.Testing/Directory.Build.targets index b74217fee..c70b0af6f 100644 --- a/tests/Microsoft.CodeAnalysis.Testing/Directory.Build.targets +++ b/tests/Microsoft.CodeAnalysis.Testing/Directory.Build.targets @@ -1,11 +1,8 @@ - + - - - \ No newline at end of file diff --git a/tests/Microsoft.CodeAnalysis.Testing/tools/MSTest/MSTest.props b/tests/Microsoft.CodeAnalysis.Testing/tools/MSTest/MSTest.props deleted file mode 100644 index 8c119d541..000000000 --- a/tests/Microsoft.CodeAnalysis.Testing/tools/MSTest/MSTest.props +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/tests/Microsoft.CodeAnalysis.Testing/tools/MSTest/MSTest.targets b/tests/Microsoft.CodeAnalysis.Testing/tools/MSTest/MSTest.targets deleted file mode 100644 index a8967a255..000000000 --- a/tests/Microsoft.CodeAnalysis.Testing/tools/MSTest/MSTest.targets +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - - - - - - - - - <_TestEnvironment>%(TestToRun.EnvironmentDisplay) - <_TestAssembly>%(TestToRun.Identity) - <_TestRuntime>%(TestToRun.TestRuntime) - <_TestTimeout>%(TestToRun.TestTimeout) - <_TestRunnerAdditionalArguments>%(TestToRun.TestRunnerAdditionalArguments) - - <_TestRunnerTargetFramework>net451 - - - - <_MSTestConsoleExe>vstest.console.exe - <_MSTestConsoleExePath>$(NuGetPackageRoot)microsoft.testplatform/$(MicrosoftTestPlatformVersion)/tools/$(_TestRunnerTargetFramework)/Common7/IDE/Extensions/TestPlatform/$(_MSTestConsoleExe) - - - <_TestRunnerArgs>"$(_TestAssembly)" /Platform:%(TestToRun.Architecture) /Framework:%(TestToRun.TargetFramework) /Logger:trx;LogFileName="%(TestToRun.ResultsXmlPath)" $(_TestRunnerAdditionalArguments) - <_TestRunnerArgs Condition="'$(_TestRuntime)' == 'Mono'">$(TestRuntimeAdditionalArguments) "$(_MSTestConsoleExePath)" $(_TestRunnerArgs) - - - <_TestRunner Condition="'$(_TestRuntime)' == 'Mono'">$(MonoTool) - <_TestRunner Condition="'$(_TestRuntime)' != 'Mono'">$(_MSTestConsoleExePath) - - - - <_TestRunnerCommand>"$(_TestRunner)" $(_TestRunnerArgs) - - - <_TestRunnerCommand Condition="'$(TestCaptureOutput)' != 'false'">$(_TestRunnerCommand) > "%(TestToRun.ResultsStdOutPath)" 2>&1 - - - - - <_OutputFiles Include="%(TestToRun.ResultsXmlPath)" /> - <_OutputFiles Include="%(TestToRun.ResultsStdOutPath)" /> - - - - - - - - - - - - - - - - - - <_ResultsFileToDisplay>%(TestToRun.ResultsHtmlPath) - <_ResultsFileToDisplay Condition="!Exists('$(_ResultsFileToDisplay)')">%(TestToRun.ResultsStdOutPath) - - - - - - - - - - diff --git a/tests/Microsoft.CodeAnalysis.Testing/tools/NUnit/NUnit.props b/tests/Microsoft.CodeAnalysis.Testing/tools/NUnit/NUnit.props deleted file mode 100644 index 736332286..000000000 --- a/tests/Microsoft.CodeAnalysis.Testing/tools/NUnit/NUnit.props +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/tests/Microsoft.CodeAnalysis.Testing/tools/NUnit/NUnit.targets b/tests/Microsoft.CodeAnalysis.Testing/tools/NUnit/NUnit.targets deleted file mode 100644 index 7720be5d2..000000000 --- a/tests/Microsoft.CodeAnalysis.Testing/tools/NUnit/NUnit.targets +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - - - - - - - - - <_TestEnvironment>%(TestToRun.EnvironmentDisplay) - <_TestAssembly>%(TestToRun.Identity) - <_TestRuntime>%(TestToRun.TestRuntime) - <_TestTimeout>%(TestToRun.TestTimeout) - <_TestRunnerAdditionalArguments>%(TestToRun.TestRunnerAdditionalArguments) - - <_TestRunnerTargetFramework>net451 - - - - <_VSTestConsoleExe>vstest.console.exe - <_VSTestConsoleExePath>$(NuGetPackageRoot)microsoft.testplatform/$(MicrosoftTestPlatformVersion)/tools/$(_TestRunnerTargetFramework)/Common7/IDE/Extensions/TestPlatform/$(_VSTestConsoleExe) - - - <_TestRunnerArgs>"$(_TestAssembly)" /Platform:%(TestToRun.Architecture) /Framework:%(TestToRun.TargetFramework) /Logger:trx;LogFileName="%(TestToRun.ResultsXmlPath)" $(_TestRunnerAdditionalArguments) - <_TestRunnerArgs Condition="'$(_TestRuntime)' == 'Mono'">$(TestRuntimeAdditionalArguments) "$(_VSTestConsoleExePath)" $(_TestRunnerArgs) - - - <_TestRunner Condition="'$(_TestRuntime)' == 'Mono'">$(MonoTool) - <_TestRunner Condition="'$(_TestRuntime)' != 'Mono'">$(_VSTestConsoleExePath) - - - - <_TestRunnerCommand>"$(_TestRunner)" $(_TestRunnerArgs) - - - <_TestRunnerCommand Condition="'$(TestCaptureOutput)' != 'false'">$(_TestRunnerCommand) > "%(TestToRun.ResultsStdOutPath)" 2>&1 - - - - <_OutputFiles Include="%(TestToRun.ResultsXmlPath)" /> - <_OutputFiles Include="%(TestToRun.ResultsStdOutPath)" /> - - - - - - - - - - - - - - - - - - <_ResultsFileToDisplay>%(TestToRun.ResultsHtmlPath) - <_ResultsFileToDisplay Condition="!Exists('$(_ResultsFileToDisplay)')">%(TestToRun.ResultsStdOutPath) - - - - - - - - - - diff --git a/tests/VisualStudio.Roslyn.SDK/Directory.Build.targets b/tests/VisualStudio.Roslyn.SDK/Directory.Build.targets index 5ddf69387..4884c0c1f 100644 --- a/tests/VisualStudio.Roslyn.SDK/Directory.Build.targets +++ b/tests/VisualStudio.Roslyn.SDK/Directory.Build.targets @@ -1,6 +1,6 @@ - +