Welcome to MSDN Blogs Sign in | Join | Help

How to enable code coverage without a test list

Aaron pointed out this post by Ben Day that talks about using the RunConfigFile property with a build that runs tests without using test lists (.vsmdi files).  It all boils down to looking like the following (in Orcas, you would specify the $(OutDir) part in the TestContainer's Include attribute, whereas you don't in the TFS 2005 power tools TestToolsTask TestContainerInOutput element).

  <ItemGroup>

    <TestContainer Include="$(OutDir)\HelloWorldTest.dll" />

  </ItemGroup>

  <PropertyGroup>

    <RunConfigFile>$(SolutionRoot)\CSharp\Tests\localtestrun.testrunconfig</RunConfigFile>

  </PropertyGroup>

Read Ben Day's post, Run tests from your TFS Team Build without a test list (.vsmdi) with code coverage, for the details on setting this up with the TFS 2005 power tools task.

Published Thursday, July 05, 2007 9:14 PM by buckh

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# VSTS Links - 07/12/2007

Aaron Hallberg on Getting The Modified Files For a Team Build In Orcas. Brian Harry on Cool tool for...

Thursday, July 12, 2007 6:42 AM by Team System News

# MSBuild Task for generating testrunconfig file

I&#39;ve been working a bit with automating our build process and creating a lot of CI builds. Today

Wednesday, May 21, 2008 9:32 AM by Blog'A'Little

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker