Running Mstest.exe without a command creation server.

I want to run tests on the comman line using mstest.exe. Here is the command I'm trying to execute

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

But every time I get an error.

 No Build Uri specified for publish operation. 

For switch syntax, enter "MSTest / help"

I do not use teamFoundation server. How do I run this?

+6
source share
1 answer

The /platform command-line /platform actually related to publishing, not to running the test (as described in http://msdn.microsoft.com/en-us/library/ms182489(v=vs.100).aspx ). When you specify at least one publication parameter, MSTest confirms that the minimum required set of publication parameters has been provided.

Since you really do not want to publish, just getting rid of the /platform option needs to fix the problem.

+7
source

Source: https://habr.com/ru/post/953189/


All Articles