Describe the bug
Version used
Microsoft.Testing.Platform 2.1.0
net10.0
NUnit 4
NUnit3TestAdapter 6.1.0
Steps To Reproduce
Add test packages to a project but don't add any tests to it.
Run dotnet test --ignore-exit-code 8
Repro attached.
mtp-bug.zip
-->
Expected behavior
Command succeeds, exit code is 0.
Exit code 8 is respected at the dotnet test level.
Actual behavior
Command fails, exit code is 1.
Exit code 8 is respected only if you run the MTP executable itself.
Additional context
Workaround - dotnet test --ignore-exit-code 1;8
Describe the bug
Version used
Microsoft.Testing.Platform 2.1.0
net10.0
NUnit 4
NUnit3TestAdapter 6.1.0
Steps To Reproduce
Add test packages to a project but don't add any tests to it.
Run
dotnet test --ignore-exit-code 8Repro attached.
mtp-bug.zip
-->
Expected behavior
Command succeeds, exit code is 0.
Exit code 8 is respected at the
dotnet testlevel.Actual behavior
Command fails, exit code is 1.
Exit code 8 is respected only if you run the MTP executable itself.
Additional context
Workaround -
dotnet test --ignore-exit-code 1;8