-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HIGH IMPORTANCE] dotnet test
should return a non-0 exit code when any tests fail
#241
Comments
Additional repro info: I am using zsh as my console. Will see if this repros out of plain terminal |
ACK on |
It looks like Will confirm shortly. |
Fixed with 592a213 |
Wonderful! Thanks! What build # should we pick up? |
Fix is in this PR dotnet/cli#4810 |
* Bug fixes * Nitpick * -Fixed failed tests -Added test to cover trx logger scenario. * Fix for issue microsoft/vstest#241 * Fix for failed test. We have taken fix where dotnet test will return nonzero if test fails. In multi TFM scenario if test fails it termates the whole process as dotnet test is returning 1. As a fix of this we should continue if some test fails for next TFM * Bump Microsoft.Testplatform.CLI and Microsoft.NET.Test.Sdk version
This is important and we'd really appreciate a quick fix.
Repro:
dotnet test
$?
on OS X, similar 'get last exit code' elsewhereExpected:
non-0 exit code returned, indicating test failure
Actual:
0 returned, indicating success.
Impact:
CLI Builds cannot be trusted right now. There is no way to detect test failure during build execution on local dev box nor in CI. @MattGertz this is likely associated with the NuGet PR @livarcocc is backing out right now.
@blackdwarf I know you're looking at UX in this space, so FYI.
dotnet --info:
The text was updated successfully, but these errors were encountered: