MSTest XSLT

I am sure someone out there may find this useful. Its an XSLT to transform the TRX file that is output by the MSTest runner. Its a slightly better visual depiction than my MSBuild output of thousands of lines of courier new text…

This is very much “It works on my computer”, I am running VS 2008 Team edition (?). Let me know if this works for you.

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform&quot;
                xmlns:vs=”http://microsoft.com/schemas/VisualStudio/TeamTest/2006″&gt;
 
   
     
       

Test Results Summary

       

         

           

           

         

         

           

           

         

       

              Run Date/Time
           
             
           
              Results
           
             
           

        Coverage Summary
       
       
     
   
 
 
   

Test Summary

   

     

       

       

       

     

     

       

       

       

     

   

Total Failed Passed
         
       
         
       
         
       

 
 
   

Unit Test Results

     

       

       

     

     
       

         
           
              background-color:pink;
background-color:lightgreen;
              background-color:yellow;
           
         
         

         

       

     
   

Test Name Result
           
         
           
              FAILED
              Passed
              Inconclusive
           
         

 

2 thoughts on “MSTest XSLT

  1. To get this working with VS2012, just need to change the attribute in the first element to;
    xmlns:vs=”http://microsoft.com/schemas/VisualStudio/TeamTest/2010

    to match the xmlns in the first line of the TRX file.

    Works well – thanks

    Like

Leave a reply to Ian Quigley Cancel reply