Geeks With Blogs
Tim Huffam Dotting the I and crossing the T of I.T. June 2009 Entries
Turning on code coverage/instrumentation in a TFS Build
This requires a testrunconfig file that has been configured correctly. To do this I did the following: In VS2008, right click on Solution Items folder and select Add - New Item... Select Test Run Configuration and enter the name WithCodeCoverage.testruncon... Open/edit this file in VS. Select the 'Code Coverage' item on the left, then selected (checked) the assemblies I wanted to instrument Click Apply to save these changes. Note that you can select which is the active test run configuration from ......

Posted On Tuesday, June 16, 2009 11:32 PM

How to turn on unit testing in your TFS build
The following will make your builds (running on a TFS Server) execute your unit tests after the build: Open your build file (eg TFSBuild.proj). VS2008 has a nice xml editor for this. Search for the RunTest node and change it from: <RunTest>false</Ru... to: <RunTest>true</Run... Look for a section that starts with: <ItemGroup> <!-- TEST ARGUMENTS ... and add nodes within this (after the comments and before the closing of the ItemGroup node) - one entry for each ......

Posted On Tuesday, June 16, 2009 10:54 PM

Copyright © Tim Huffam | Powered by: