Friday, November 18, 2011

Run MS Test via the command-line tool MSTest.exe

  • Right-click the ‘List of Tests’ option in the tree view on the left and select the ‘New Test List…’ option.
  • Fill out the dialog with a meaningful name and description.
  • Click the ‘All Loaded Tests’ option in the tree view to display a list of available tests. Right click on the displayed list and select the menu item.
  • Running MSTest at the command prompt with the ‘testmetadata’ option pointing to your new vsmdi file will run the tests.
"C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\MSTest.exe" /testmetadata:%1.vsmdi

No comments: