summaryrefslogtreecommitdiff
path: root/Tools/dotnetcli/sdk/2.1.2/Microsoft.TestPlatform.targets
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/dotnetcli/sdk/2.1.2/Microsoft.TestPlatform.targets')
-rw-r--r--Tools/dotnetcli/sdk/2.1.2/Microsoft.TestPlatform.targets90
1 files changed, 90 insertions, 0 deletions
diff --git a/Tools/dotnetcli/sdk/2.1.2/Microsoft.TestPlatform.targets b/Tools/dotnetcli/sdk/2.1.2/Microsoft.TestPlatform.targets
new file mode 100644
index 0000000000..de1630486f
--- /dev/null
+++ b/Tools/dotnetcli/sdk/2.1.2/Microsoft.TestPlatform.targets
@@ -0,0 +1,90 @@
+<!--
+***********************************************************************************************
+Microsoft.TestPlatform.targets
+
+WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
+ created a backup copy. Incorrect changes to this file will make it
+ impossible to load or build your projects from the command-line or the IDE.
+
+Copyright (c) .NET Foundation. All rights reserved.
+***********************************************************************************************
+-->
+<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <!-- Load Microsoft.TestPlatform.Build.Tasks.dll, this can be overridden to use a different version with $(VSTestTaskAssemblyFile) -->
+ <PropertyGroup>
+ <VSTestTaskAssemblyFile Condition="$(VSTestTaskAssemblyFile) == ''">Microsoft.TestPlatform.Build.dll</VSTestTaskAssemblyFile>
+ <VSTestConsolePath Condition="$(VSTestConsolePath) == ''">$([System.IO.Path]::Combine($(MSBuildThisFileDirectory),"vstest.console.dll"))</VSTestConsolePath>
+ <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
+ </PropertyGroup>
+ <UsingTask TaskName="Microsoft.TestPlatform.Build.Tasks.VSTestTask" AssemblyFile="$(VSTestTaskAssemblyFile)" />
+ <UsingTask TaskName="Microsoft.TestPlatform.Build.Tasks.BuildLogTask" AssemblyFile="$(VSTestTaskAssemblyFile)" />
+
+ <!--
+ ============================================================
+ Test target
+ Main entry point for running tests through vstest.console.exe
+ ============================================================
+ -->
+ <Target Name="VSTest" >
+ <CallTarget Condition="'$(VSTestNoBuild)' != 'true'" Targets="BuildProject" />
+
+ <CallTarget Targets="ShowCallOfVSTestTaskWithParameter" />
+
+ <Microsoft.TestPlatform.Build.Tasks.VSTestTask
+ TestFileFullPath="$(TargetPath)"
+ VSTestSetting="$(VSTestSetting)"
+ VSTestTestAdapterPath="$(VSTestTestAdapterPath)"
+ VSTestFramework="$(TargetFrameworkMoniker)"
+ VSTestPlatform="$(PlatformTarget)"
+ VSTestTestCaseFilter="$(VSTestTestCaseFilter)"
+ VSTestLogger="$(VSTestLogger)"
+ VSTestListTests="$(VSTestListTests)"
+ VSTestDiag="$(VSTestDiag)"
+ VSTestCLIRunSettings="$(VSTestCLIRunSettings)"
+ VSTestConsolePath="$(VSTestConsolePath)"
+ VSTestResultsDirectory="$(VSTestResultsDirectory)"
+ VSTestVerbosity="$(VSTestVerbosity)"
+ VSTestCollect="$(VSTestCollect)"
+ VSTestBlame="$(VSTestBlame)"
+ />
+ </Target>
+
+ <Target Name="BuildProject">
+ <CallTarget Targets="ShowMsbuildWithParameter" />
+
+ <Microsoft.TestPlatform.Build.Tasks.BuildLogTask BuildStarted="True" />
+ <MSBuild Projects ="$(MSBuildProjectFullPath)" />
+ <Microsoft.TestPlatform.Build.Tasks.BuildLogTask />
+
+ <Message Text="Done Building project $(MSBuildProjectFullPath) for TargetFramework=$(TargetFramework)" Importance="low" />
+ </Target>
+
+ <Target Name="ShowMsbuildWithParameter">
+ <Message Text="Building project $(MSBuildProjectFullPath) for TargetFramework=$(TargetFramework)" Importance="low"/>
+ <Message Text="Value passed to msbuild are..." Importance="low" />
+ <Message Text="Configuration = $(Configuration)" Importance="low" />
+ <Message Text="TargetFramework = $(TargetFramework)" Importance="low" />
+ <Message Text="Platform = $(PlatformTarget)" Importance="low" />
+ <Message Text="OutputPath = $(OutputPath)" Importance="low" />
+ </Target>
+
+ <Target Name="ShowCallOfVSTestTaskWithParameter">
+ <Message Text="Calling task Microsoft.TestPlatform.Build.Tasks.VSTestTask with following parameter..." Importance="low" />
+ <Message Text="TestFileFullPath = $(TargetPath)" Importance="low" />
+ <Message Text="VSTestSetting = $(VSTestSetting)" Importance="low" />
+ <Message Text="VSTestTestAdapterPath = $(VSTestTestAdapterPath)" Importance="low" />
+ <Message Text="VSTestFramework = $(TargetFrameworkMoniker)" Importance="low" />
+ <Message Text="VSTestPlatform = $(PlatformTarget)" Importance="low" />
+ <Message Text="VSTestTestCaseFilter = $(VSTestTestCaseFilter)" Importance="low" />
+ <Message Text="VSTestLogger = $(VSTestLogger)" Importance="low" />
+ <Message Text="VSTestListTests = $(VSTestListTests)" Importance="low" />
+ <Message Text="VSTestDiag = $(VSTestDiag)" Importance="low" />
+ <Message Text="VSTestCLIRunSettings = $(VSTestCLIRunSettings)" Importance="low" />
+ <Message Text="VSTestResultsDirectory = $(VSTestResultsDirectory)" Importance="low" />
+ <Message Text="VSTestConsolePath = $(VSTestConsolePath)" Importance="low" />
+ <Message Text="VSTestVerbosity = $(VSTestVerbosity)" Importance="low" />
+ <Message Text="VSTestCollect = $(VSTestCollect)" Importance="low" />
+ <Message Text="VSTestBlame = $(VSTestBlame)" Importance="low" />
+ </Target>
+
+</Project>