views:

336

answers:

2

We use Visual Studio 2008 and MSTest.

We have a batch file that the developers use to get latest version, build solution, run database scripts and run all tests.

The problem is that we have many test projects. So at the end the developer must open each trx file to check if anything failed.

Is there a way to write all test results to a single trx file, or to merge the results to a single file?

Thanks

Shiraz

+1  A: 

The way I achieved this simply was to put all my test projects in the same solution file (need not be a solution file that is actually used by the devs), I then add a local testrun config to the solution and use file in my mstest command line instruction.

That way I only create one trx file.

Kindness,

Dan

Daniel Elliott
Thanks for the reply. We have all the test projects in the same solution. But there are ca. 8 test projects, each project creates it's own trx file.
Shiraz Bhaiji
Are you running tests using mstest from command line / batch file? For each dll?
Daniel Elliott
Apologies ... edited you need to add a test run config and use that in the mstest command line
Daniel Elliott
+1  A: 

mstest /testcontainer:YourTestContainer1.dll /testcontainer:YourTestContainer2.dll ... + all the other mstest parameters you need, testrunconfig etc. leeds to one .trx file

Thanks, I did not think that you could use the /testcontainer parameter more than once :)
Shiraz Bhaiji
:( I was very hopeful with this, but it turns out you can only have one testsettings parameter set, and i have a different per solution
mrwaim