Running diff. test lists under diff. testconfigs?

Doesn't look to me like there's any built in way to do this based on the TeamFoundation .targets file implementation, but I thought I'd check to make sure I wasn't missing something. The reason for this is that I have a set of tests that can be run inside of the regular test host and then a set of tests that have to be run inside of an ASP.NET host. Not to mention other settings like the deployables are diff. between the two.

The test task is defined as such:

<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" />

So as you can see, it's setup to allow multiple MetaDataFile items to be defined each with their own TestLists metatdata, but unfortunately RunConfigFile is a property. This means that every set of tests is going to be run with the same config. Had it been defined like this instead...

RunConfigFile="%(MetaDataFile.RunConfigFile)"

... we could have had specified a separate run config per metadata file.

Any thoughts on how to fix this other than having to making sure to redefine the RunTestWithConfiguration target on every machine?

Cheers,
Drew

[3717 byte] By [DrewMarsh] at [2008-2-8]
# 1

Nobody from Microsoft cares to comment? Guess maybe I should enter a bug...?

DrewMarsh at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Build Automation...
# 2

Drew,

You need to do followin modifications -

1) edit your metadatafile itemgroup in the tfsbuild.proj file -

Change from -

<MetaDataFile Include="$(SolutionRoot)\HelloWorld\HelloWorld.vsmdi">
<TestList>BVT</TestList>
</MetaDataFile>

To -

<MetaDataFile Include="$(SolutionRoot)\HelloWorld\HelloWorld.vsmdi">
<TestList>BVT</TestList>

<RunConfigFile>***enter location of rcg file***</RunConfigFile>
</MetaDataFile>

2) in microsoft.teamfoundation.build.targets file, target "RunTestWithConfiguration", task "TestToolsTask"

change

RunConfigFile="$(RunConfigFile)"

to

RunConfigFile="%(MetaDataFile.RunConfigFile)"

Note that I have not tried and tested the changes but things should work fine.

ManishAgarwal at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Build Automation...

Visual Studio Team System

Site Classified