{"id":2283,"date":"2007-07-05T21:14:08","date_gmt":"2007-07-05T21:14:08","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/buckh\/2007\/07\/05\/how-to-enable-code-coverage-without-a-test-list\/"},"modified":"2007-07-05T21:14:08","modified_gmt":"2007-07-05T21:14:08","slug":"how-to-enable-code-coverage-without-a-test-list","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/buckh\/how-to-enable-code-coverage-without-a-test-list\/","title":{"rendered":"How to enable code coverage without a test list"},"content":{"rendered":"<p><a href=\"http:\/\/blogs.msdn.com\/aaronhallberg\">Aaron<\/a> pointed out this post by <a href=\"http:\/\/blog.benday.com\/\">Ben Day<\/a> that talks about using the RunConfigFile property with a build that runs tests without using test lists (.vsmdi files).&nbsp; It all boils down to looking like the following (in Orcas, you would specify the $(OutDir) part in the TestContainer&#8217;s Include attribute, whereas you don&#8217;t in the&nbsp;<a href=\"http:\/\/blogs.msdn.com\/buckh\/archive\/2006\/11\/04\/how-to-run-tests-without-test-metadata-files-and-test-lists-vsmdi-files.aspx\">TFS 2005 power tools TestToolsTask<\/a> TestContainerInOutput element).<\/p>\n<blockquote><p> &nbsp; &lt;ItemGroup&gt;<\/p>\n<p>&nbsp;&nbsp;&nbsp; &lt;TestContainer Include=&#8221;$(OutDir)\\HelloWorldTest.dll&#8221; \/&gt; <\/p>\n<p>&nbsp; &lt;\/ItemGroup&gt; <\/p>\n<p>&nbsp; &lt;PropertyGroup&gt; <\/p>\n<p>&nbsp;&nbsp;&nbsp; &lt;RunConfigFile&gt;$(SolutionRoot)\\CSharp\\Tests\\localtestrun.testrunconfig&lt;\/RunConfigFile&gt; <\/p>\n<p>&nbsp; &lt;\/PropertyGroup&gt;<\/p>\n<\/blockquote>\n<p>Read Ben Day&#8217;s post, <a href=\"http:\/\/blog.benday.com\/archive\/2007\/02\/09\/22380.aspx\">Run tests from your TFS Team Build without a test list (.vsmdi) with code coverage<\/a>, for the details on setting this up with the TFS 2005 power tools task.<\/p>\n<div class=\"wlWriterSmartContent\" id=\"0767317B-992E-4b12-91E0-4F059A8CECA8:35456fd6-1eed-4ee1-8ab6-1150a876c912\" style=\"padding-right: 0px;padding-left: 0px;padding-bottom: 0px;margin: 0px;padding-top: 0px\">Technorati tags: <a href=\"http:\/\/technorati.com\/tags\/tfs\" rel=\"tag\">tfs<\/a>, <a href=\"http:\/\/technorati.com\/tags\/team%20foundation\" rel=\"tag\">team foundation<\/a>, <a href=\"http:\/\/technorati.com\/tags\/team%20build\" rel=\"tag\">team build<\/a>, <a href=\"http:\/\/technorati.com\/tags\/unit%20testing\" rel=\"tag\">unit testing<\/a>, <a href=\"http:\/\/technorati.com\/tags\/vsmdi\" rel=\"tag\">vsmdi<\/a>, <a href=\"http:\/\/technorati.com\/tags\/code%20coverage\" rel=\"tag\">code coverage<\/a>, <a href=\"http:\/\/technorati.com\/tags\/msbuild\" rel=\"tag\">msbuild<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>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).&nbsp; It all boils down to looking like the following (in Orcas, you would specify the $(OutDir) part in the TestContainer&#8217;s Include attribute, whereas you don&#8217;t in the&nbsp;TFS 2005 [&hellip;]<\/p>\n","protected":false},"author":94,"featured_media":10268,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[7,8],"class_list":["post-2283","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-team-build","tag-team-foundation"],"acf":[],"blog_post_summary":"<p>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).&nbsp; It all boils down to looking like the following (in Orcas, you would specify the $(OutDir) part in the TestContainer&#8217;s Include attribute, whereas you don&#8217;t in the&nbsp;TFS 2005 [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/2283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/users\/94"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/comments?post=2283"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/2283\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/media\/10268"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/media?parent=2283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/categories?post=2283"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/tags?post=2283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}