<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" 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:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>Solid development</title>
        <link>http://geekswithblogs.net/martin/Default.aspx</link>
        <description>Don’t make excuses for code, let it speak for itself</description>
        <language>en-US</language>
        <copyright>martin</copyright>
        <managingEditor>mmverboon@hotmail.com</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <image>
            <title>Solid development</title>
            <url>http://geekswithblogs.net/images/RSS2Image.gif</url>
            <link>http://geekswithblogs.net/martin/Default.aspx</link>
            <width>77</width>
            <height>60</height>
        </image>
        <item>
            <title>Inconclusive / ignored tests converted from NUnit to MSTest correctly</title>
            <category>Team Build</category>
            <link>http://geekswithblogs.net/martin/archive/2009/11/05/inconclusive--ignored-tests-converted-from-nunit-to-mstest-correctly.aspx</link>
            <description>&lt;a href="http://www.nablasoft.com/alkampfer/index.php/2009/07/19/integrate-nunit-test-into-a-tfs-build/"&gt;This article&lt;/a&gt; describes how to integrate NUnit tests into the TFS build. It also supplies a link to a XSLT file for the conversion between the NUnit results to an MSTest format.&lt;br /&gt;
&lt;br /&gt;
The result is great; in the details of the Build Explorer you will see the number of Passed, Failed and Other Result tests. However, when you click the results you will see that any 'Other Result' tests (tests with for instance the IgnoreAttribute) will show up as 'Failed' tests. Also the Quality Indicators graph will show them as 'Failed' tests. &lt;br /&gt;
&lt;br /&gt;
&lt;img height="43" width="358" alt="" src="/images/geekswithblogs_net/martin/TestCountTotalInBuildDetails.png" /&gt;&lt;br /&gt;
&lt;br /&gt;
I've edited the XSLT file to solve this; around line 157 I've changed the 'xsl:choose' to:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt; &amp;lt;xsl:attribute name="outcome"&amp;gt;&lt;br /&gt;
   &amp;lt;xsl:choose &amp;gt;&lt;br /&gt;
      &amp;lt;xsl:when test="@success='True'"&amp;gt;&lt;br /&gt;
         &amp;lt;xsl:value-of select="'Passed'"/&amp;gt;&lt;br /&gt;
      &amp;lt;/xsl:when&amp;gt;&lt;br /&gt;
      &amp;lt;xsl:when test="@executed='False'"&amp;gt;&lt;br /&gt;
         &amp;lt;xsl:value-of select="'Inconclusive'"/&amp;gt;&lt;br /&gt;
      &amp;lt;/xsl:when&amp;gt;&lt;br /&gt;
      &amp;lt;xsl:otherwise&amp;gt;&lt;br /&gt;
         &amp;lt;xsl:value-of select="'Failed'"/&amp;gt;&lt;br /&gt;
      &amp;lt;/xsl:otherwise&amp;gt;&lt;br /&gt;
   &amp;lt;/xsl:choose&amp;gt;&lt;br /&gt;
&amp;lt;/xsl:attribute&amp;gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Now not only the count works correctly, also the test details and quality indicators graph shows them as 'Inconclusive'.&lt;br /&gt;
&lt;br /&gt;
&lt;img height="37" width="178" alt="" src="/images/geekswithblogs_net/martin/InconclusiveTest.png" /&gt;&lt;br /&gt;
&lt;br /&gt;
Ps. I assume the possible values of 'outcome' are listed in Microsoft.VisualStudio.TestTools.Common.TestOutcome (located in C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\Microsoft.VisualStudio.QualityTools.Common.dll) &lt;img src="http://geekswithblogs.net/martin/aggbug/136014.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>martin</dc:creator>
            <guid>http://geekswithblogs.net/martin/archive/2009/11/05/inconclusive--ignored-tests-converted-from-nunit-to-mstest-correctly.aspx</guid>
            <pubDate>Thu, 05 Nov 2009 09:02:58 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/martin/comments/136014.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/martin/archive/2009/11/05/inconclusive--ignored-tests-converted-from-nunit-to-mstest-correctly.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/martin/comments/commentRss/136014.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Beware of MSBuild warnings about missing projects in a solution</title>
            <category>Team Build</category>
            <link>http://geekswithblogs.net/martin/archive/2009/11/03/beware-of-msbuild-warnings-about-missing-projects-in-a-solution.aspx</link>
            <description>Beware of a warning that may occur during a Team Build that indicates that a dependent project is missing in a solution. Note that the warning will not appear in the ErrorsAndWarnings.txt because that only reports the errors and warnings from compilation itself and not those specific to MSBuild.&lt;br /&gt;
&lt;br /&gt;
The warning found in BuildLog.txt is:&lt;br /&gt;
&lt;span style="font-style: italic;"&gt;SomeSolution.sln : Solution file warning &lt;span style="font-weight: bold;"&gt;MSB4051&lt;/span&gt;: Project {A88..DB} is referencing a project with GUID {756..6AA}, but a project with this GUID was not found in the .SLN file.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Usually nothing problematic happens and the code compiles correctly. If you're unlucky and the dependent project has not been build yet it will cause the build to fail. But if you are very unlucky the build may succeed, but some files are missing in the drop location. This may happen if the problematic solution is build near the end of the Team Build. In this case the compiler detects that the dependent assemblies are no longer needed (it uses the "obj\Release\ProjectName.csproj.FileListAbsolute.txt" to detect this) and deletes them. &lt;img src="http://geekswithblogs.net/martin/aggbug/135972.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>martin</dc:creator>
            <guid>http://geekswithblogs.net/martin/archive/2009/11/03/beware-of-msbuild-warnings-about-missing-projects-in-a-solution.aspx</guid>
            <pubDate>Tue, 03 Nov 2009 15:31:22 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/martin/comments/135972.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/martin/archive/2009/11/03/beware-of-msbuild-warnings-about-missing-projects-in-a-solution.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/martin/comments/commentRss/135972.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Merging sub collections into one collection</title>
            <category>LINQ</category>
            <category>C#</category>
            <link>http://geekswithblogs.net/martin/archive/2009/10/30/merging-sub-collections-into-one-collection-again.aspx</link>
            <description>Sometimes a LINQ query or other method returns a nested collection but you just want one big collection instead. SelectMany is the answer, see the code below. It can off course also be combined with OrderBy or Distinct if you prefer.&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;List&amp;lt;List&amp;lt;double&amp;gt;&amp;gt; nestedList = new List&amp;lt;List&amp;lt;double&amp;gt;&amp;gt;&lt;br /&gt;
                                   {&lt;br /&gt;
                                      new List&amp;lt;double&amp;gt; { 1.2, 2.4 },&lt;br /&gt;
                                      new List&amp;lt;double&amp;gt; { 3.6, 4.8 }&lt;br /&gt;
                                   };&lt;br /&gt;
&lt;br /&gt;
List&amp;lt;double&amp;gt; flatList = nestedList.SelectMany(doubleList =&amp;gt; doubleList).ToList();&lt;br /&gt;
foreach (double item in flatList)&lt;br /&gt;
{&lt;br /&gt;
   Console.WriteLine(item);&lt;br /&gt;
}&lt;/code&gt; &lt;img src="http://geekswithblogs.net/martin/aggbug/135891.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>martin</dc:creator>
            <guid>http://geekswithblogs.net/martin/archive/2009/10/30/merging-sub-collections-into-one-collection-again.aspx</guid>
            <pubDate>Fri, 30 Oct 2009 14:14:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/martin/comments/135891.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/martin/archive/2009/10/30/merging-sub-collections-into-one-collection-again.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/martin/comments/commentRss/135891.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Diagnosing TFS builds</title>
            <category>Team Build</category>
            <link>http://geekswithblogs.net/martin/archive/2009/10/30/diagnosing-tfs-builds-again.aspx</link>
            <description>&lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style=""&gt;&lt;font size="2"&gt;&lt;span style="font-family: Arial;"&gt;Build fails from some strange reason or build does not perform the things you expect it to do, what to do? Every team build in the TeamBuildTypes folder contains a TFSBuild.rsp file, perform a check out and add the following command argument to it:&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style=""&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;/v:diag&lt;/span&gt;&lt;span lang="EN-US" style=""&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span lang="EN-US" style=""&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;span lang="EN-US" style=""&gt;&lt;font size="2"&gt;&lt;span style="font-family: Arial;"&gt;Check the file in and run the build; beware that the log size increases dramatically. The build log contains very detailed information, even the contents of all variables used in the build.&lt;/span&gt;&lt;/font&gt;&lt;/span&gt; &lt;img src="http://geekswithblogs.net/martin/aggbug/135889.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>martin</dc:creator>
            <guid>http://geekswithblogs.net/martin/archive/2009/10/30/diagnosing-tfs-builds-again.aspx</guid>
            <pubDate>Fri, 30 Oct 2009 14:10:17 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/martin/comments/135889.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/martin/archive/2009/10/30/diagnosing-tfs-builds-again.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/martin/comments/commentRss/135889.aspx</wfw:commentRss>
        </item>
    </channel>
</rss>
