This project has moved and is read-only. For the latest updates, please go here.

Unit Testing with Visual Studio

Feb 23, 2010 at 1:16 AM

We know that BTDF has support for NUnit.  What about the unit-testing that is built into Visual Studio and TFS?
Would BTDF be able to run those unit tests after a deploy (perhaps with some minor mods)?

Neal Walters




Feb 23, 2010 at 3:49 AM

As far as I know, it is still true that the only way to run MSTest tests from a command-line is by installing Visual Studio first.  However, I did find an open-source tool that can run MSTest tests (as well as those of numerous other test frameworks).

I can look at incorporating this in the future:


Feb 23, 2010 at 10:54 PM

Hmmm, interesting.  I didn't know about that limitation.



Feb 25, 2010 at 10:41 PM

Today I ran my first unit test from the command window:

"c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\MSTest.exe" /testcontainer:bin\Debug\TestProject1.dll

Sometime in the future, I may try just copying over the MSTest.exe and see if it will work on a machine that doesn't have Visual Studio.