Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to run an mstest dll from command line

anybody knows how to run unit test dlls built using mstest from the command line, without running VS

considering that on the machine there is .net 4.0 and VS2010 installed

like image 575
Omu Avatar asked Mar 30 '12 15:03

Omu


People also ask

Where is MSTest EXE located?

Add the folder that contains MSTest.exe to your path variable and restart the execution server. The default path is: C:\Program Files (x86)\Microsoft Visual Studio <version>\Common7\IDE.


1 Answers

I haven't done it myself, but I'd imagine that using the mstest command line is the way forward... if you've already tried that and had problems, please give more details.

mstest /testcontainer:path\to\tests.dll

EDIT: As noted in comments, you should either do this after putting the right directories on the path, or include the full path to mstest.exe.

like image 89
Jon Skeet Avatar answered Sep 29 '22 12:09

Jon Skeet