Just grab the MbUnit XSLT for the HTML report from the source and apply
it to your combined XML.
 
In MbUnit v3 we're shipping the XSLTs in flat files so this is a bit
easier...
 
Jeff.

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED]
On Behalf Of Leonid Lastovkin
Sent: Thursday, November 01, 2007 9:29 AM
To: [email protected]
Subject: MbUnit Re: How to consolidate multiple MbUnit tests results
into one + how to access an object model.




        

                2) You could just run all of the assemblies at the same
time with the MbUnit console application.  It'll emit a consolidated
report which should be just what you're looking for.
                 
                It is also possible to merge MbUnit reports using XSLT
but I don't know if anyone's done it yet.  When faced with the same
problem, I modified the CruiseControl.Net XSLT for generating the HTML
report so that it would consume multiple report XML files that were
trivially combined (end-to-end with a new root element) and create a
consolidated HTML report.  That turned out to be much easier and quite
effective.


I decided to take the second approach. I have code in place that
generates a combined XML report. It looks exactly as if I ran multiple
assemblies (each with unique name) sequentially. 
I now need to turn that into an HTML report. I downloaded MbUnit's
source code, and it looks like I can reuse parts of it - it already has
an HtmlReport class with RenderToHtml method.
The tricky part that is that I need an instance of ReportResult object,
and I can't quite figure out how to create one from a properly formatted
XML report file. 

Any ideas?





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MbUnit.User" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/MbUnitUser?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to