Test task doesn't fail if test assembly doesn't exist

We've got a TeamCity project that's using msbuild.  We have just noticed that one of the assemblies we are supposed to be running tests from doesn't exist, but the builds have been successful in spite of this.

Shouldn't the test run fail if it can't load one of the assemblies containing the tests.

The msbuild file is attached.

1 comment
Comment actions Permalink

Seems this is MSBuild script issue. I believe msbuild script should check all assemblies exists.

You may write the following:
<Error Text="Assembly does not exist: %(AssembliesToInclude)" Contdition="!Exists('%(AssembliesToInclude)')" />



Please sign in to leave a comment.