-
Notifications
You must be signed in to change notification settings - Fork 125
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
Test failures still running subsequent build steps #80
Comments
Odd, the fact it returns an non-zero error code (1 in this case) should tell TC that the step failed. Can you confirm what version of Powershell is running on the agent?
Could you try and change the return code to |
The devops guy says it's running version 4.0
|
Was able to modify script to refer to $LASTEXITCODE so errors are reported and stop build workaround snippet
|
@brettveenstra definitely useful. Just one note that above should be applied to every usage of We just had failures on the nuget command in the beginning of the file and that produced a false positive for all tests. As there are quite a few |
When an xunit test fails the step is still reported as failed ( ie in red ) but subsequent tasks still execute even though the execute step are all set to "If all previous steps finished successfully"
The xUnit.net console running is returning exit code '1'
TeamCity server version is 9.1.6 (build 37459)
[Step 1/1] dotCoverArgs: cover coverage_settings.xml /LogFile=dotCoverXunitLog.txt /ReturnTargetExitCode
[Step 1/1] JetBrains dotCover Console Runner 10.0.2. Build 104.0.20151218.125453
[Step 1/1] xUnit.net Console Runner (64-bit .NET 4.0.30319.42000)
...
[Step 1/1] [JetBrains dotCover] Analysed application exited with code '1'
The text was updated successfully, but these errors were encountered: