views:

23

answers:

1

According to MSDN here and discussed here, we can use MSTest.exe to run tests from command line - which is sweet and faster than running within the IDE (especially slow if you are working on a big solution like me).

My question is how can I use MSTest.exe to run all tests in my solution? The command only have the /test option to filter the tests in one assembly specified in /container option. I only can think of calling this command N times given that I can have all the N test assembly in my solution (!?) Moreover, the results after run are per-assembly basics so that it's not easy to get what tests were failed/passed.

If you know a better way, please share! Thank you!

+1  A: 

You might want to have a look at the Gallio.Echo test runner which comes with the Gallio test automation platform. It's a free (OSS) package with many convenient reporting tools and test runners and which supports most the existing test frameworks (MbUnit, NUnit, MSTest, xUnit, etc.)

alt text

More specifically, Gallio.Echo is a versatile command line test runner. You can specify a list of test assemblies, various filters, and many extra options. Gallio consolidates the test results in a single report (Xml, Html, Zip, etc.)

Yann Trevin