{"id":2373,"date":"2007-05-30T08:52:16","date_gmt":"2007-05-30T08:52:16","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/buckh\/2007\/05\/30\/viewing-test-results-in-a-web-browser\/"},"modified":"2007-05-30T08:52:16","modified_gmt":"2007-05-30T08:52:16","slug":"viewing-test-results-in-a-web-browser","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/buckh\/viewing-test-results-in-a-web-browser\/","title":{"rendered":"Viewing test results in a web browser"},"content":{"rendered":"<p><a href=\"http:\/\/blogs.msdn.com\/rido\/\">Rido<\/a> posted a cool way to see your test results from a build without having to copy the information locally and view it in VS.&nbsp; Pretty cool!<\/p>\n<blockquote><p> <a href=\"http:\/\/blogs.msdn.com\/rido\/archive\/2007\/05\/24\/testresults-reports-in-tfs-builds.aspx\">TestResults Reports in TFS Builds<\/a><\/p>\n<p>If you use TFSBuilds with VS UnitTests, you know&nbsp;how to inspect the TestResults: you must download the whole directory to your local machine, and sometimes this folder could be pretty huge. <\/p>\n<p>So, if you want to check the error details of your tests, you can use my tool <a href=\"http:\/\/blogs.msdn.com\/rido\/archive\/2006\/05\/23\/trx2html.aspx\">trx2html<\/a> to convert the *.trx files to html, so you can see the reports with any browser. <\/p>\n<p>Here are the instructions in 3 simple steps: <\/p>\n<p>1) copy the RidoTasks.dll file to your source tree  <\/p>\n<p>&nbsp;$(SolutionRoot)\\RidoCode\\tools\\RidoTasks.dll <\/p>\n<p>2) Reference the msbuild task in TFSBuild.proj <\/p>\n<p>&lt;UsingTask TaskName=&#8221;RidoTasks.trx2html&#8221; AssemblyFile=&#8221;$(SolutionRoot)\\GEN4\\tools\\RidoTasks.dll&#8221; \/&gt; <\/p>\n<p>3) Convert the test reports after drop the build results <\/p>\n<p>&lt;Target Name=&#8221;AfterDropBuild&#8221;&gt; <\/p>\n<p>&nbsp;&nbsp;&nbsp; &lt;CallTarget Targets=&#8221;CreateTRXReports&#8221; \/&gt; <\/p>\n<p>&lt;\/Target&gt; <\/p>\n<p>&lt;Target Name=&#8221;CreateTRXReports&#8221;&gt; <\/p>\n<p>&nbsp;&nbsp; &lt;CreateItem Include=&#8221;$(DropLocation)\\$(BuildNumber)\\TestResults\\*.trx&#8221;&gt; <\/p>\n<p>&nbsp; &lt;Output TaskParameter=&#8221;Include&#8221; ItemName=&#8221;trxfiles&#8221;\/&gt; <\/p>\n<p>&lt;\/CreateItem&gt; <\/p>\n<p>&lt;RidoTasks.trx2html FileName=&#8221;%(trxfiles.Identity)&#8221; \/&gt; <\/p>\n<p>&lt;\/Target&gt;<\/p>\n<\/blockquote>\n<p>tags: <a href=\"http:\/\/technorati.com\/tag\/tfs\" rel=\"tag\">tfs<\/a>, <a href=\"http:\/\/technorati.com\/tag\/team+foundation\" rel=\"tag\">team foundation<\/a>, <a href=\"http:\/\/technorati.com\/tag\/vsts\" rel=\"tag\">vsts<\/a>, <a href=\"http:\/\/technorati.com\/tag\/team+build\" rel=\"tag\">team build<\/a>, <a href=\"http:\/\/technorati.com\/tag\/unit+test\" rel=\"tag\">unit test<\/a>, <a href=\"http:\/\/technorati.com\/tag\/trx\" rel=\"tag\">trx<\/a>, <a href=\"http:\/\/technorati.com\/tag\/test+results\" rel=\"tag\">test results<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Rido posted a cool way to see your test results from a build without having to copy the information locally and view it in VS.&nbsp; Pretty cool! TestResults Reports in TFS Builds If you use TFSBuilds with VS UnitTests, you know&nbsp;how to inspect the TestResults: you must download the whole directory to your local machine, [&hellip;]<\/p>\n","protected":false},"author":94,"featured_media":10268,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[7,8,24],"class_list":["post-2373","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-team-build","tag-team-foundation","tag-vsts"],"acf":[],"blog_post_summary":"<p>Rido posted a cool way to see your test results from a build without having to copy the information locally and view it in VS.&nbsp; Pretty cool! TestResults Reports in TFS Builds If you use TFSBuilds with VS UnitTests, you know&nbsp;how to inspect the TestResults: you must download the whole directory to your local machine, [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/2373","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/users\/94"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/comments?post=2373"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/2373\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/media\/10268"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/media?parent=2373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/categories?post=2373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/tags?post=2373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}