MSTest abnormal end does not fail the build

I am using the %system.MSTest.10.0% MSTest runner in TeamCity 6.5.2.

MSTest is ending abnormally because a test's dependant dll cannot be found.  MSTest is exiting with 1 but the build does not fail.

Here is the evidence from the build log:

.....

[13:46:22]: Unable to load the test container '--omitted--\tools\NUnit\tests\nunit.core.tests.dll' or one of its dependencies. Error details: System.IO.FileNotFoundException: Could not load file or assembly 'nunit.core.interfaces, Version=2.5.5.10112, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77' or one of its dependencies. The system cannot find the file specified.
[13:46:22]: System.IO.FileNotFoundException: Could not load file or assembly 'nunit.mocks, Version=2.5.5.10112, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77' or one of its dependencies. The system cannot find the file specified.
[13:46:22]: Process exited with code 1

[13:46:23]: Step 3/3: Build Installers (MSBuild) (1m:16s)

[13:46:23]: Starting: C:\TeamCityBuildAgents\2
.....

The problem is not the actual System.IO.FileNotFoundException, it is the fact that the bulid continued and did not fail.

I have checked "build process exit code is not zero" on General Settings

Is there a work aorund for this?

thanks
Rich


1 comment
Comment actions Permalink

Hi

That looks similar to issue TW-17679.
Could you upgrade to 6.5.3 and check whether it helps.

Thanks
Michael

0

Please sign in to leave a comment.