2016-03-28 61 views
1

在沒有安裝VS2013的Windows服務器上,我試圖運行MsTest.exe。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" 

團隊資源管理器2013也安裝。我試圖在未安裝VS2013的Windows服務器上運行MSTEst。

回答