|
102 | 102 | <Target Name="RunTests" DependsOnTargets="CheckSkipStrongNames">
|
103 | 103 | <ItemGroup>
|
104 | 104 | <_TestDLLsXunit Include="bin\$(Configuration)\test\*.Test.dll" />
|
105 |
| - <_TestDLLsXunit Include="bin\$(Configuration)\test\*\net4*\*.Test.dll" Condition="'$(BuildPortable)' == 'true'" /> |
106 |
| - <_XunitProject Include="tools\WebStack.xunit.targets"> |
107 |
| - <Properties>TestAssembly=%(_TestDLLsXunit.FullPath);XmlPath=$(TestResultsDirectory)%(_TestDLLsXunit.FileName)-XunitResults.xml</Properties> |
| 105 | + <_TestDLLsXunit Include="bin\$(Configuration)\test\*\net4*\*.Test.dll" |
| 106 | + Condition=" '$(BuildPortable)' == 'true' " /> |
| 107 | + <_XunitProject Include="tools\WebStack.testing.targets"> |
| 108 | + <Properties>TestAssembly=%(_TestDLLsXunit.FullPath); |
| 109 | + XmlPath=$(TestResultsDirectory)%(_TestDLLsXunit.FileName)-XunitResults.xml</Properties> |
108 | 110 | </_XunitProject>
|
109 | 111 |
|
110 |
| - <_VSTestDLLs Include="bin\$(Configuration)\test\*\netcoreapp*\*.Test.dll" /> |
111 |
| - </ItemGroup> |
112 |
| - <ItemGroup> |
113 |
| - <_VSTestDLLs> |
114 |
| - <TestResultsPath>$(TestResultsDirectory)%(FileName)-NetCoreApp-XunitResults.xml</TestResultsPath> |
115 |
| - </_VSTestDLLs> |
| 112 | + <_VSTestDLLs Include="bin\$(Configuration)\test\*\netcoreapp*\*.Test.dll" |
| 113 | + Condition=" '$(BuildPortable)' == 'true' "/> |
| 114 | + <_XunitProject Include="tools\WebStack.testing.targets" |
| 115 | + Condition=" '$(BuildPortable)' == 'true' "> |
| 116 | + <Properties>TestAssembly=%(_VSTestDLLs.FullPath); |
| 117 | + XmlPath=$(TestResultsDirectory)%(_VSTestDLLs.FileName)-NetCoreApp-XunitResults.xml; |
| 118 | + UseVSTest=true</Properties> |
| 119 | + </_XunitProject> |
116 | 120 | </ItemGroup>
|
117 | 121 |
|
118 | 122 | <!-- Recreate the test results directory so that print summary doesn't run on old test results. -->
|
119 | 123 | <RemoveDir Directories="$(TestResultsDirectory)" />
|
120 | 124 | <MakeDir Directories="$(TestResultsDirectory)" />
|
121 | 125 |
|
122 |
| - <MSBuild Projects="@(_XunitProject)" BuildInParallel="$(TestInParallel)" Targets="Xunit"> |
| 126 | + <MSBuild Projects="@(_XunitProject)" BuildInParallel="$(TestInParallel)" Targets="TestAssembly"> |
123 | 127 | <Output TaskParameter="TargetOutputs" ItemName="_ExitCodes" />
|
124 | 128 | </MSBuild>
|
125 |
| - |
126 |
| - <Exec Command="dotnet vstest @(_VSTestDLLs) --logger:"xunit;LogFilePath=%(_VSTestDLLs.TestResultsPath)"" |
127 |
| - Condition=" '$(BuildPortable)' == 'true' " |
128 |
| - IgnoreExitCode="true"> |
129 |
| - <Output TaskParameter="ExitCode" ItemName="_VSTestErrorCode" /> |
130 |
| - </Exec> |
131 | 129 | </Target>
|
132 | 130 |
|
133 | 131 | <Target Name="CheckSkipStrongNames" DependsOnTargets="RestoreSkipStrongNames">
|
|
0 commit comments