Unit tests aren't run with multiple build configurations in TFS 2010 -
i using msbuild in tfs buildprocess using defaulttemplate build multiple configurations(debug/release) of same solution. when build release or debug unit tests run when run build both configurations unit tests not run.
when running multiple configurations have each of them defined in build definition under process-> items build-> configurations build mixed platforms|release,mixed platforms|debug. when run single configuration using mixed platforms|release or mixed platforms|debug.
i unable put entire log here(it on 6000 lines long) appears isnt finding of testassemblies.
edit:
here actual sections of log. i'm not sure mixed platforms\release coming in searchpathroot.
i should add compile our source's folder because few of our scripts work in layout.
debug only(works)
run mstest test assemblies c:\program files (x86)\microsoft visual studio 10.0\common7\ide\mstest.exe /nologo /usestderr /testsettings:"c:\builds\6\productname\buildname\sources\product\local.testsettings" /searchpathroot:"c:\builds\6\productname\buildname\sources" /resultsfileroot:"c:\builds\6\productname\buildname\testresults" /testcontainer:"c:\builds\6\productname\buildname\sources\test\unittestcommon\bin\debug\unittestcommon.dll" /testcontainer:"c:\builds\6\productname\buildname\sources\test\unittestcommon\bin\release\unittestcommon.dll" /testcontainer:"c:\builds\6\productname\buildname\sources\test\unittestwcf\bin\debug\unittestwcf.dll" /testcontainer:"c:\builds\6\productname\buildname\sources\test\unittestwcf\bin\release\unittestwcf.dll" /publish:"http://dctfs2010.company.dc:8080/tfs/product" /publishbuild:"vstfs:///build/build/964" /teamproject:"productname" /platform:"mixed platforms" /flavor:"debug" loading c:\builds\6\productname\buildname\sources\product\local.testsettings... loading c:\builds\6\productname\buildname\sources\test\unittestcommon\bin\debug\unittestcommon.dll... loading c:\builds\6\productname\buildname\sources\test\unittestcommon\bin\release\unittestcommon.dll...
debug , release(does not work)
run mstest test assemblies c:\program files (x86)\microsoft visual studio 10.0\common7\ide\mstest.exe /nologo /usestderr /testsettings:"c:\builds\6\productname\buildname\sources\product\local.testsettings" /searchpathroot:"c:\builds\6\productname\buildname\sources\mixed platforms\release" /resultsfileroot:"c:\builds\6\productname\buildname\testresults" /testcontainer:"c:\builds\6\productname\buildname\sources\test\unittestcommon\bin\debug\unittestcommon.dll" /testcontainer:"c:\builds\6\productname\buildname\sources\test\unittestcommon\bin\release\unittestcommon.dll" /testcontainer:"c:\builds\6\productname\buildname\sources\test\unittestwcf\bin\debug\unittestwcf.dll" /testcontainer:"c:\builds\6\productname\buildname\sources\test\unittestwcf\bin\release\unittestwcf.dll" /publish:"http://dctfs2010.company.dc:8080/tfs/product" /publishbuild:"vstfs:///build/build/962" /teamproject:"productname" /platform:"mixed platforms" /flavor:"release" directory "c:\builds\6\productname\buildname\sources\mixed platforms\release" not found.
if click on properties of solution (the solution build part of build). have configuration manager. @ configuration manager able see 'debug', 'released', 'mixed', etc other configurations may have defined. can see test project checked build in mixed configuration? if not being build, test.dll not available means, msbuild not have tests run.
another way verify why tests not running, @ build drop directory , see if can see test.dll there. if test.dll not there problem how have projects configured in configuration manager.
Comments
Post a Comment