I need to execute some MSUnit tests from Test Studio. So I created a test step with code below. I tested in a C# console program with the exact code and I got the test result in a folder; not sure why this doesn't work in the test studio?
The content of my RunUnitTest.bat is below, all the DLLs are in the same folder.
MSTest.exe /testmetadata:KBB.Trident5.vsmdi /testlist:KBB.Trident.Tests /nologo
public void _0_unitTest_CodedStep()
// Start the child process.
Process p =
// Redirect the output stream of the child process.
string output = p.StandardOutput.ReadToEnd();