Welcome to MSDN Blogs Sign in | Join | Help

Just Coding

Spanish Developer Bits
TestResults Reports in TFS Builds

If you use TFSBuilds with VS UnitTests, you know how to inspect the TestResults: you must download the whole directory to your local machine, and sometimes this folder could be pretty huge.

So, if you want to check the error details of your tests, you can use my tool trx2html to convert the *.trx files to html, so you can see the reports with any browser.

Here are the instructions in 3 simple steps:

1) copy the RidoTasks.dll file to your source tree

 $(SolutionRoot)\RidoCode\tools\RidoTasks.dll

2) Reference the msbuild task in TFSBuild.proj

<UsingTask TaskName="RidoTasks.trx2html" AssemblyFile="$(SolutionRoot)\GEN4\tools\RidoTasks.dll" />

3) Convert the test reports after drop the build results

<Target Name="AfterDropBuild">

    <CallTarget Targets="CreateTRXReports" />

</Target>

<Target Name="CreateTRXReports">

   <CreateItem Include="$(DropLocation)\$(BuildNumber)\TestResults\*.trx">

  <Output TaskParameter="Include" ItemName="trxfiles"/>

</CreateItem>

<RidoTasks.trx2html FileName="%(trxfiles.Identity)" />

</Target>

Posted: Thursday, May 24, 2007 8:54 PM by rido
Filed under: , ,

Comments

Team System News said:

Amit on Fiddler and VSTS. Martin Hinshelwood on Recipe for Team Server in a small business. Brian Harry...

# May 25, 2007 1:36 PM

Buck Hodges said:

Rido posted a cool way to see your test results from a build without having to copy the information locally

# May 30, 2007 8:52 AM

AlexeyK said:

Hi,

I downloaded the tool sources from GDN, but there was no MSBuild task. Did I miss anything? However, I compiled and tested the tool and it worked just fine for me.

Thanks.

# May 31, 2007 2:34 AM

Sarath said:

Hi,

Where can I download the RidoTask.dll?

Thanks,

Sarath

# June 6, 2007 11:10 PM
New Comments to this post are disabled
Page view tracker