locked
Unit test reports RRS feed

  • Question

  • Hi there,

    We are using VS2008 unit test features for our unit tests. But how to create corresponding unit test reports, say, in Microsoft Word?

    Thanks,

    Jay

    Tuesday, October 20, 2009 8:36 PM

Answers

All replies

  • You can use the regular SQL reporting for creating test reports - that'll pull data from the warehouse and create the chart for you. I am not sure what you mean by creating a report in Word. Can you explain a bit please?
    http://blogs.msdn.com/anutthara
    Wednesday, October 21, 2009 12:13 PM
  • Hi Anuthara,

    Thanks for the reply!

    Can you give me a high level picture on how this thing works? e.g. when I have finished a unit test, VS2008 will generate a trx file, which has the test results. I can use, say, xmlpad to open and view it. However, the format shown with xmlpad is not satifactory for us. I might be missing something, but how is this related to SQL server and, therefore to SQL reporting?

    We are trying to write test reports in Microsoft Word, and to find an easy way to pull our unit test results into Word document with some acceptable format.

    Jay

    Wednesday, October 21, 2009 9:19 PM
  • This might be a good place to start;

    http://www.codeplex.com/trx2html

    -Euan
    http://blogs.msdn.com/euanga
    Thursday, October 22, 2009 12:38 AM
  • Hi Euan,

    Thanks for your reply! I checked out the website, and got the trx2html working.

    Meanwhile, I have couple of questions on the Publish feature in VS2008.
    1. It looks like that unit test results can be published to TFS. Besides publishing the results, so that other people can see them, are there any other benefits of doing this, e.g. to have a better reporting features?
    2. Published results have to be associated to build versions, but what's the rationale behind this? What if I have some unit tests which are between two build versions, how should I handle this?

    Thanks,

    Jay
    Thursday, October 22, 2009 9:50 PM
  • Hi Jay,

    1. Yes reporting is a benefit.  You can get an understanding for what is reported thru the warehouse by reading thru these:
    http://msdn.microsoft.com/en-us/library/ms181634.aspx
    http://msdn.microsoft.com/en-us/library/ms244711.aspx

    2. A lot of the reporting is based on the builds.  Builds give the resutls context.

    Thursday, November 19, 2009 5:24 PM