<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Code Smart Not Hard - Unit Testing</title>
    <link>http://codesmartnothard.com/</link>
    <description>Team Foundation Server, Frameworks, and Code Generation</description>
    <language>en-us</language>
    <copyright>Michael Douglas</copyright>
    <lastBuildDate>Sat, 28 Mar 2009 07:23:00 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 1.9.6264.0</generator>
    <managingEditor>mike@doitconsultants.com</managingEditor>
    <webMaster>mike@doitconsultants.com</webMaster>
    <item>
      <trackback:ping>http://codesmartnothard.com/Trackback.aspx?guid=a334ed32-2103-4cc0-92be-b2b1282fd8c4</trackback:ping>
      <pingback:server>http://codesmartnothard.com/pingback.aspx</pingback:server>
      <pingback:target>http://codesmartnothard.com/PermaLink,guid,a334ed32-2103-4cc0-92be-b2b1282fd8c4.aspx</pingback:target>
      <dc:creator>Your DisplayName here!</dc:creator>
      <wfw:comment>http://codesmartnothard.com/CommentView,guid,a334ed32-2103-4cc0-92be-b2b1282fd8c4.aspx</wfw:comment>
      <wfw:commentRss>http://codesmartnothard.com/SyndicationService.asmx/GetEntryCommentsRss?guid=a334ed32-2103-4cc0-92be-b2b1282fd8c4</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
I created a nightly build to run my data driven unit tests.   When my build
finished it was only partially successfully.   I looked at the unit tests
and they were all passing yet there was an error on the testing step.  When I
looked in the log below is the message I saw.   I thought this was a little
confusing because there was only a warning.  I wasn’t sure what caused the TestToolsTask
to fail.  I first thought it was a permission or some other issue when it was
trying to publish but the results did publish.   Next I looked at the warning
VSP1030 message.   Then I remembered I enabled code coverage but the build
configuration was set to Release.  I changed the build to Debug and everything
worked!   Before I figured out the issue I tried searching the web but I
didn’t find any solutions.   I hope this helps.
</p>
        <p>
Summary 
<br />
  ------- 
<br />
  Test Run Warning. 
<br />
    Passed  6 
<br />
    --------- 
<br />
    Total   6 
<br />
  Results file:      t:\builds\MyTeamProject\Nightly
Build\TestResults\builduser_MYSERVER_2009-03-25 23_56_46_Any CPU_Release.trx 
<br />
  Run Configuration: Local Test Run 
<br />
  Run has the following issue(s): 
<br />
  Instrumentation error while processing file BusinessObjects.dll: 
<br />
TESTTOOLSTASK : warning VSP1030: Invalid, mismatched, or no PDB file was found for
t:\builds\MyTeamProject\Nightly Build\Binaries\Release\BusinessObjects.dll. 
<br />
  The previous error was converted to a warning because the task was called with
ContinueOnError=true. 
<br />
  Waiting to publish... 
<br />
  Publishing results of test run <a href="mailto:builduser@MYSERVER">builduser@MYSERVER</a> 2009-03-25
23:56:46_Any CPU_Release to <a href="http://tfsserver:8080/Build/v1.0/PublishTestResultsBuildService2.asmx..">http://tfsserver:8080/Build/v1.0/PublishTestResultsBuildService2.asmx..</a>. 
<br />
  ....Publish completed successfully. 
<br />
  The command exited with code -1. 
<br />
  Build continuing because "ContinueOnError" on the task "TestToolsTask"
is set to "true". 
<br />
Done executing task "TestToolsTask" -- FAILED.
</p>
        <p>
 
</p>
        <p>
Mike
</p>
        <img width="0" height="0" src="http://codesmartnothard.com/aggbug.ashx?id=a334ed32-2103-4cc0-92be-b2b1282fd8c4" />
      </body>
      <title>TestToolsTask failed when running data driven unit tests from Team Build</title>
      <guid isPermaLink="false">http://codesmartnothard.com/PermaLink,guid,a334ed32-2103-4cc0-92be-b2b1282fd8c4.aspx</guid>
      <link>http://codesmartnothard.com/TestToolsTaskFailedWhenRunningDataDrivenUnitTestsFromTeamBuild.aspx</link>
      <pubDate>Sat, 28 Mar 2009 07:23:00 GMT</pubDate>
      <description>&lt;p&gt;
I created a nightly build to run my data driven unit tests.&amp;#160;&amp;#160; When my build
finished it was only partially successfully.&amp;#160;&amp;#160; I looked at the unit tests
and they were all passing yet there was an error on the testing step.&amp;#160; When I
looked in the log below is the message I saw.&amp;#160;&amp;#160; I thought this was a little
confusing because there was only a warning.&amp;#160; I wasn’t sure what caused the TestToolsTask
to fail.&amp;#160; I first thought it was a permission or some other issue when it was
trying to publish but the results did publish.&amp;#160;&amp;#160; Next I looked at the warning
VSP1030 message.&amp;#160;&amp;#160; Then I remembered I enabled code coverage but the build
configuration was set to Release.&amp;#160; I changed the build to Debug and everything
worked!&amp;#160;&amp;#160; Before I figured out the issue I tried searching the web but I
didn’t find any solutions.&amp;#160;&amp;#160; I hope this helps.
&lt;/p&gt;
&lt;p&gt;
Summary 
&lt;br /&gt;
&amp;#160; ------- 
&lt;br /&gt;
&amp;#160; Test Run Warning. 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; Passed&amp;#160; 6 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; --------- 
&lt;br /&gt;
&amp;#160;&amp;#160;&amp;#160; Total&amp;#160;&amp;#160; 6 
&lt;br /&gt;
&amp;#160; Results file:&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; t:\builds\MyTeamProject\Nightly
Build\TestResults\builduser_MYSERVER_2009-03-25 23_56_46_Any CPU_Release.trx 
&lt;br /&gt;
&amp;#160; Run Configuration: Local Test Run 
&lt;br /&gt;
&amp;#160; Run has the following issue(s): 
&lt;br /&gt;
&amp;#160; Instrumentation error while processing file BusinessObjects.dll: 
&lt;br /&gt;
TESTTOOLSTASK : warning VSP1030: Invalid, mismatched, or no PDB file was found for
t:\builds\MyTeamProject\Nightly Build\Binaries\Release\BusinessObjects.dll. 
&lt;br /&gt;
&amp;#160; The previous error was converted to a warning because the task was called with
ContinueOnError=true. 
&lt;br /&gt;
&amp;#160; Waiting to publish... 
&lt;br /&gt;
&amp;#160; Publishing results of test run &lt;a href="mailto:builduser@MYSERVER"&gt;builduser@MYSERVER&lt;/a&gt; 2009-03-25
23:56:46_Any CPU_Release to &lt;a href="http://tfsserver:8080/Build/v1.0/PublishTestResultsBuildService2.asmx.."&gt;http://tfsserver:8080/Build/v1.0/PublishTestResultsBuildService2.asmx..&lt;/a&gt;. 
&lt;br /&gt;
&amp;#160; ....Publish completed successfully. 
&lt;br /&gt;
&amp;#160; The command exited with code -1. 
&lt;br /&gt;
&amp;#160; Build continuing because &amp;quot;ContinueOnError&amp;quot; on the task &amp;quot;TestToolsTask&amp;quot;
is set to &amp;quot;true&amp;quot;. 
&lt;br /&gt;
Done executing task &amp;quot;TestToolsTask&amp;quot; -- FAILED.
&lt;/p&gt;
&lt;p&gt;
&amp;#160;
&lt;/p&gt;
&lt;p&gt;
Mike
&lt;/p&gt;
&lt;img width="0" height="0" src="http://codesmartnothard.com/aggbug.ashx?id=a334ed32-2103-4cc0-92be-b2b1282fd8c4" /&gt;</description>
      <comments>http://codesmartnothard.com/CommentView,guid,a334ed32-2103-4cc0-92be-b2b1282fd8c4.aspx</comments>
      <category>Team Build;Team Foundation Server;Unit Testing</category>
    </item>
    <item>
      <trackback:ping>http://codesmartnothard.com/Trackback.aspx?guid=08f09165-bf04-44cc-8fd0-89e5651b2d32</trackback:ping>
      <pingback:server>http://codesmartnothard.com/pingback.aspx</pingback:server>
      <pingback:target>http://codesmartnothard.com/PermaLink,guid,08f09165-bf04-44cc-8fd0-89e5651b2d32.aspx</pingback:target>
      <dc:creator>Your DisplayName here!</dc:creator>
      <wfw:comment>http://codesmartnothard.com/CommentView,guid,08f09165-bf04-44cc-8fd0-89e5651b2d32.aspx</wfw:comment>
      <wfw:commentRss>http://codesmartnothard.com/SyndicationService.asmx/GetEntryCommentsRss?guid=08f09165-bf04-44cc-8fd0-89e5651b2d32</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Three friends and former colleagues of mine just released <a href="http://www.codeplex.com/rtr" target="_blank">Remote
Test Runner</a>, a useful tool for running unit tests and especially data driven unit
tests.    This tool allows users without Visual Studio such as Business
Analysts, Business Testers, etc  to remotely the run data driven unit tests and
view the test results in a clean report.   The tester can manage the whole
process of inputting data to the tests, running the tests, and viewing the output.  
One of my favorite features is the ability to do all of the asserts per row even if
there are errors.   If you have used <a href="http://fitnesse.org/FitNesse.DotNet" target="_blank">FitNesse</a>,
this is for the same type of testing.  One of the advantages of RTR over FitNesse
is that the tests are unit tests and that you don’t have to create the fixtures.  
</p>
        <p>
Check it out!
</p>
        <p>
          <a title="http://www.codeplex.com/rtr" href="http://www.codeplex.com/rtr">http://www.codeplex.com/rtr</a>
        </p>
        <p>
Mike
</p>
        <img width="0" height="0" src="http://codesmartnothard.com/aggbug.ashx?id=08f09165-bf04-44cc-8fd0-89e5651b2d32" />
      </body>
      <title>Cool Test Runnings</title>
      <guid isPermaLink="false">http://codesmartnothard.com/PermaLink,guid,08f09165-bf04-44cc-8fd0-89e5651b2d32.aspx</guid>
      <link>http://codesmartnothard.com/CoolTestRunnings.aspx</link>
      <pubDate>Sat, 28 Mar 2009 06:46:00 GMT</pubDate>
      <description>&lt;p&gt;
Three friends and former colleagues of mine just released &lt;a href="http://www.codeplex.com/rtr" target="_blank"&gt;Remote
Test Runner&lt;/a&gt;, a useful tool for running unit tests and especially data driven unit
tests.&amp;#160;&amp;#160;&amp;#160; This tool allows users without Visual Studio such as Business
Analysts, Business Testers, etc&amp;#160; to remotely the run data driven unit tests and
view the test results in a clean report.&amp;#160;&amp;#160; The tester can manage the whole
process of inputting data to the tests, running the tests, and viewing the output.&amp;#160;&amp;#160;
One of my favorite features is the ability to do all of the asserts per row even if
there are errors.&amp;#160;&amp;#160; If you have used &lt;a href="http://fitnesse.org/FitNesse.DotNet" target="_blank"&gt;FitNesse&lt;/a&gt;,
this is for the same type of testing.&amp;#160; One of the advantages of RTR over FitNesse
is that the tests are unit tests and that you don’t have to create the fixtures.&amp;#160; 
&lt;/p&gt;
&lt;p&gt;
Check it out!
&lt;/p&gt;
&lt;p&gt;
&lt;a title="http://www.codeplex.com/rtr" href="http://www.codeplex.com/rtr"&gt;http://www.codeplex.com/rtr&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
Mike
&lt;/p&gt;
&lt;img width="0" height="0" src="http://codesmartnothard.com/aggbug.ashx?id=08f09165-bf04-44cc-8fd0-89e5651b2d32" /&gt;</description>
      <comments>http://codesmartnothard.com/CommentView,guid,08f09165-bf04-44cc-8fd0-89e5651b2d32.aspx</comments>
      <category>Unit Testing</category>
    </item>
  </channel>
</rss>