visual studio 2010 - Running VS2010 UnitTests project from TFS2008 Team Build -


i have visual studio 2010 mvc 3 application unit tests projects in it. have tfs 2008 build definition build solution.

on build agent have got following installed

but when run build following error:-

using "testtoolstask" task assembly "c:\program files\microsoft visual studio 10.0\common7\ide\privateassemblies\microsoft.teamfoundation.build.processcomponents.dll".     task "testtoolstask"       c:\program files\microsoft visual studio 10.0\common7\ide\mstest.exe /nologo /usestderr /searchpathroot:"c:\tfs\core\crime\binaries\release" /resultsfileroot:"c:\tfs\core\crime\testresults" /testcontainer:"c:\tfs\core\crime\binaries\release\\project1.unittests.dll" /testcontainer:"c:\tfs\core\crime\binaries\release\\project2.unittests.dll" /testcontainer:"c:\tfs\core\crime\binaries\release\\project3.unittests.dll" /testcontainer:"c:\tfs\core\crime\binaries\release\\project4.unittests.dll" /publish:"http://server:8080/" /publishbuild:"vstfs:///build/build/88124" /teamproject:"core" /platform:"any cpu" /flavor:"release"        invalid switch "/publish".       invalid switch "/publishbuild".       invalid switch "/teamproject".       invalid switch "/platform".       invalid switch "/flavor".       switch syntax, type "mstest /help"     c:\program files\msbuild\microsoft\visualstudio\teambuild\microsoft.teamfoundation.build.targets(1406,5,1406,5): warning : tf270015: 'mstest.exe' returned unexpected exit code. expected '0'; actual '1'.        previous error converted warning because task called continueonerror=true.     c:\program files\msbuild\microsoft\visualstudio\teambuild\microsoft.teamfoundation.build.targets(1406,5): warning msb4018: "testtoolstask" task failed unexpectedly. [c:\tfs\core\crime\buildtype\tfsbuild.proj]     c:\program files\msbuild\microsoft\visualstudio\teambuild\microsoft.teamfoundation.build.targets(1406,5): warning msb4018: microsoft.teamfoundation.build.workflow.activities.unexpectedexitcodeexception: tf270015: 'mstest.exe' returned unexpected exit code. expected '0'; actual '1'. 

if run mstest command directly on build server via commandline without switches works fine. don't understand why trying add these switches. idea?

you need vs 2010 premium or ultimate installed use switches in mstest.exe. can around sort of doing exec of mstest switches want, won't see results nicely in build.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -