Thursday, 6 August 2009

TRX File decoder script updated to include Console output

Can’t image how I forgot this, but I did:

<xsl:stylesheet version="2.0"  

<xsl:template match="/">
<style type="text/css">
h2 {color: sienna}
p {margin-left: 20px}
.resultsHdrRow { font-face: arial; padding: 5px }
.resultsRow { font-face: arial; padding: 5px }
<h2>Test Results</h2>
<li>Tests found: <xsl:value-of select="t:TestRun/t:ResultSummary/t:Counters/@total"/></li>
<li>Tests executed: <xsl:value-of select="t:TestRun/t:ResultSummary/t:Counters/@executed"/></li>
<li>Tests passed: <xsl:value-of select="t:TestRun/t:ResultSummary/t:Counters/@passed"/></li>
<li>Tests Failed: <xsl:value-of select="t:TestRun/t:ResultSummary/t:Counters/@failed"/></li>

<table border="1" width="80%" >
<tr class="resultsHdrRow">
<th align="left">Test</th>
<th align="left">Outcome</th>
<xsl:for-each select="/t:TestRun/t:Results/t:UnitTestResult" >
<tr valign="top" class="resultsRow">
<td width='30%'><xsl:value-of select="@testName"/></td>
<td width='70%'>
<Div>Message: <xsl:value-of select="t:Output/t:ErrorInfo/t:Message"/></Div>
<Div>Stack: <xsl:value-of select="t:Output/t:ErrorInfo/t:StackTrace"/></Div>
<Div>Console: <xsl:value-of select="t:Output/t:StdOut"/></Div>


Using Beyond Compare with Visual Studio

This info is in other places on the internet but I’m putting it here for my future reference:

Under Tools|Options|Source Control|Visual Studio Team Foundation Server

Select Configure User Tools


Then add the following tools:


   Tool: C:\Program Files (x86)\Beyond Compare 3\BCompare.exe

   Arguments: %1 %2 /title1=%6 /title2=%7 /solo


   Tool: C:\Program Files (x86)\Beyond Compare 3\BCompare.exe

   Arguments: %1 %2 %3 %4 /title1=%6 /title2=%7 /title3=%8 /title4=%9 /solo