-
Notifications
You must be signed in to change notification settings - Fork 335
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
Failing tests don't fail build when warningsAsErrors is false #1589
Comments
Here is an example of this in the wild. CC @markwilkie |
This line should fail the build: |
That line is output, but as a warning. You can see it at the very bottom of the log I linked above. |
It's behaving as though there's a ContinueOnError=WarnAndContinue in effect when that Error is logged. |
Yeah, seems like a bug in msbuild to me. |
Next step is to find and reference the tracking msbuild bug (assuming there is one) |
We've started setting warningsAsErrors to false in our builds of Arcade projects because that's what we did before, and we have some warnings that would currently cause us to start failing, but when we do this test failures don't fail the build because they're only logged as warnings. I suspect this is caused by this line, where
LogStandardErrorAsError="false"
. I've noticed that that's set that way in a couple different Exec's, so possibly this is not the only area affected.Repro:
That takes a while to run, but if I'm right it should replicated against any arcade repo with a failing test against which warnaserrors=false was passed.
The text was updated successfully, but these errors were encountered: