Forcing a testrunconfig for Team Build?
I've seen mention of a <Runconfiguration> property thrown around and also an approach of <TestingArgs>/runconfiguration:blahblah</TestingArgs>. I've tried both and neither one is working out for me, so it's always pulling the default one from my VSMDI.
Any suggestions?
TIA,
Drew
Nevermind, I dug into the Microsoft.TeamFoundation.Build.targets file and found it. The RunTestsWithConfiguration target has a pair of TestToolsTaks in it and that supports a RunConfigFile property that is pulled from a build property named the same.
<
TestToolsTask
Condition=" '$(IsDesktopBuild)'!='true' and '%(MetaDataFile.Identity)'!=''"
BuildFlavor="$(Flavor)"
Platform="$(Platform)"
PublishServer="$(TeamFoundationServerUrl)"
PublishBuild="$(BuildNumber)"
SearchPathRoot="$(SearchPathRoot)"
PathToResultsFilesRoot="$(TestResultsRoot)"
MetaDataFile="%(MetaDataFile.Identity)"RunConfigFile="$(RunConfigFile)"
TestLists="%(MetaDataFile.TestList)"
TeamProject="$(TeamProject)"
ContinueOnError="true" /> Hopefully this saves someone else some digging.
Cheers,
Drew