MSTest fails but build continues anyway...

Hi teamcity slickers!

We've just encountered a big problem (which may be due to settings..). It's very important that the build fails if any test fails (and the corresponding setting is set), but apparently, if MSTest fails altogther, the build continues on as if there were no errors.

[14:14:29]: Step 2/4 (10s)
[14:14:29]: Using runner: MSTest
[14:14:29]: Starting: C:\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe #TeamCityImplicit
[14:14:29]: in directory: L:\TeamCity\ePersonal\Main
[14:14:39]: Microsoft (R) Test Execution Command Line Tool Version 10.0.30319.1
[14:14:39]: Copyright (c) Microsoft Corporation. All rights reserved.
[14:14:39]:     
[14:14:39]: File "L:\TeamCity\Product\Main\Product.Test\bin\Release\Product.Test.dll" not found .
[14:14:39]: For switch syntax, type "MSTest /help"
[14:14:39]: Process exited with code 1 (Yes, that setting is also set)
[14:14:39]: Step 3/4 (1m:34s)



How to make it fail?
3 comments
Comment actions Permalink

Hi Gunnar

We have this issue filed in TW-17002, please watch.
The workarround for now is to split these steps into separate build configurations, and link them by a snapshot dependency.

Michael

0
Comment actions Permalink

Perfect, as long as it's on the radar and there's a workaround I'm happy.

Thanks!

0
Comment actions Permalink

So, 4 years is gone by and the bug is still there? Really perfect...

0

Please sign in to leave a comment.