Search code examples
c#.netautomated-testsmstest

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


Solution

  • 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.