Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running Mstest.exe without team foundation server.

I want to run tests in comman line using mstest.exe. Here is the command which I am trying to execute

MSTest.exe /platform:[x64] "/testcontainer:D:\Dev\tas\Tests.dll" /resultsfile:"D:\Dev\TestResults.xml"

But everytime I am getting error.

No Build Uri specified for publish operation.

For switch syntax, type "MSTest /help"

I am not using any teamFoundation server. How do I run this?

like image 253
wayfare Avatar asked Sep 04 '13 19:09

wayfare


1 Answers

The /platform command line option is actually related to the publishing, not test execution (as described at http://msdn.microsoft.com/en-us/library/ms182489(v=vs.100).aspx). When you specify at least one publishing option, MSTest validates that the minimum required set of publishing options have been supplied.

Since you don't really want to publish, simply getting rid of the /platform option should fix the problem.

like image 187
Nicole Calinoiu Avatar answered Nov 11 '22 23:11

Nicole Calinoiu