在未安装VS2013的Windows服务器中,我尝试运行MsTest.exe。
MSTest.exe /nologo /usestderr /testSettings:"C:\Builds\6\Nerddinner\myjantest2\Sources\Nerddinner_3.0\CodeCoverage.testrunconfig" /searchpathroot:"C:\Builds\6\Nerddinner\myjantest2\Binaries" /resultsfileroot:"C:\Builds\6\Nerddinner\myjantest2\TestResults" /testcontainer:"C:\Builds\6\Nerddinner\myjantest2\Binaries\NerdDinner.Tests.dll"
我得到了输出。当我试图发布报告时,我面临下面提到的错误。
MSTest的:
MSTest.exe /nologo /usestderr /testSettings:"C:\Builds\6\Nerddinner\myjantest2\Sources\Nerddinner_3.0\CodeCoverage.testrunconfig" /searchpathroot:"C:\Builds\6\Nerddinner\myjantest2\Binaries" /resultsfileroot:"C:\Builds\6\Nerddinner\myjantest2\TestResults" /testcontainer:"C:\Builds\6\Nerddinner\myjantest2\Binaries\NerdDinner.Tests.dll" /publish:"http://pheonixdevops01:8080/tfs/defaultcollection" /noprompt /publishbuild:"vstfs:///Build/Build/2267" /teamproject:"Nerddinner" /platform:"Any CPU" /flavor:"Web.Debug"
错误:
Invalid switch "/publish".
Invalid switch "/publishbuild".
Invalid switch "/teamproject".
Invalid switch "/platform".
Invalid switch "/flavor".
For switch syntax, type "MSTest /help"
还安装了Team Explorer 2013。我正在尝试在没有安装VS2013的Windows服务器上运行MSTEst。