How do you avoid Assertion Dialog when running unit tests via MSTEST?

Hi,

I'm using MSBuild to kick off some tests using MSTest.

The problem I have is that the tests are running against debug builds and in some cases assertion dialogs are appearing, which is obviously not ideal for CI. When I was using NUnit I could suppress the dialog using a .config file for the nunit project in the following manner:

<configuration>
<system.diagnostics>
<assert assertuienabled="false" />
</system.diagnostics>
</configuration>

How can I do this using MSBuild/MSTest?

thanks in advance,

John.

BTW: I originally posted this in the MSBuild forum and was referred here.

[754 byte] By [JohnDB] at [2007-12-24]
# 1
This technique should still work with MSTest because the configuration is for your assembly.
WilliamBartholomew at 2007-10-8 > top of Msdn Tech,Visual Studio Team System,Visual Studio Performance Tools (Profiler)...

Visual Studio Team System

Site Classified