diff options
| author | Bob Arnson <bob@firegiant.com> | 2025-03-20 12:09:02 -0400 |
|---|---|---|
| committer | Bob Arnson <github@bobs.org> | 2025-03-20 13:02:06 -0400 |
| commit | bf13a0b67dd644eb7d74cb0cfb6876840f73d82b (patch) | |
| tree | bacd057fa1962aa5f12519991f9cd836d2a0c171 /src/Directory.csproj.targets | |
| parent | 45535e659ea8b58101fe9e8adfa6aa273d2bb544 (diff) | |
| download | wix-bf13a0b67dd644eb7d74cb0cfb6876840f73d82b.tar.gz wix-bf13a0b67dd644eb7d74cb0cfb6876840f73d82b.tar.bz2 wix-bf13a0b67dd644eb7d74cb0cfb6876840f73d82b.zip | |
Switch to MSTest built-in Test target.
Prevents test run during VS build and shows failure details on console
(no need to dig into TRX file).
Diffstat (limited to 'src/Directory.csproj.targets')
| -rw-r--r-- | src/Directory.csproj.targets | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/Directory.csproj.targets b/src/Directory.csproj.targets index ed041bb8..d5bfb960 100644 --- a/src/Directory.csproj.targets +++ b/src/Directory.csproj.targets | |||
| @@ -20,16 +20,6 @@ | |||
| 20 | <TestingPlatformShowTestsFailure>true</TestingPlatformShowTestsFailure> | 20 | <TestingPlatformShowTestsFailure>true</TestingPlatformShowTestsFailure> |
| 21 | </PropertyGroup> | 21 | </PropertyGroup> |
| 22 | 22 | ||
| 23 | <Target Name="RunWixTests" AfterTargets="Build" Condition=" '$(IsWixMSTestProject)' == 'true' AND '$(SuppressWixTests)' != 'true' "> | ||
| 24 | <Delete Files="$(TestResultsFolder)$(MSBuildProjectName).trx" /> | ||
| 25 | |||
| 26 | <Exec | ||
| 27 | Command="$(TargetPath.Replace('.dll', '.exe')) --results-directory $(TestResultsFolder) --report-trx --report-trx-filename $(MSBuildProjectName).trx --no-progress --settings $([MSBuild]::GetPathOfFileAbove('wix.runsettings'))" | ||
| 28 | UseCommandProcessor="false" | ||
| 29 | CustomErrorRegularExpression=" Test method .+ threw exception:" /> | ||
| 30 | </Target> | ||
| 31 | |||
| 32 | |||
| 33 | <ItemGroup Condition=" '$(IsWixTestProject)'=='true' "> | 23 | <ItemGroup Condition=" '$(IsWixTestProject)'=='true' "> |
| 34 | <PackageReference Include="Microsoft.NET.Test.Sdk" /> | 24 | <PackageReference Include="Microsoft.NET.Test.Sdk" /> |
| 35 | <PackageReference Include="xunit" /> | 25 | <PackageReference Include="xunit" /> |
