The document is archived and information here might be outdated
Command-Line Test Execution
Visual Studio 2008
You use the MSTest.exe program to run tests from a command line. The topics in this section describe how to use the MSTest.exe command to run tests, see test results, save results to disk, and publish results to your team's operational store.