There are three approaches:

1. If you run your tests with Gallio.Echo.exe, the MSBuild, NAnt or
PowerShell tasks you can save the report to an XML file then write a tool to
load up the XML and import results into the Db.

2. Similarly if you use those tools or Gallio.Icarus.exe (the GUI), then you
can implement an ITestRunnerExtension and subscribe to various test events
on the runner and upload to the Db as they become available.

3. You can create a subclass of TestDecoratorAttribute MbUnit attribute and
override the Dispose method to capture the test outcome using
TestContext.Current.Outcome and TestContext.Current.Test.  Then apply the
attribute to each test that you want to have in the Db.  Notice that you
cannot capture the report contents like assertion failures this way.


In any case, ITestListener is an internal API, not one you want to use
directly.

Jeff.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of akhil
Sent: Wednesday, May 06, 2009 6:43 AM
To: MbUnit.User
Subject: MbUnit report tracking


I am very new to MbUnit and require guidance on how to proceed regarding my
requirement.

Requirement:  I have to track the MbUnit results each time it is run in a
DB.  My present knowledge is that once the test is run I can get the reports
in the HTML, XML or Text format and I have to manually save them.  What I
need to do is as the execution is completed I need to insert the values such
as the test was run, the time taken, result of the test case etc all of
which is being tracked by MbUnit.
I looked at the API's list and saw something called as ReportListener, am I
looking at the right thing.  How do I proceed.

Thanks in Advance
akhil


--~--~---------~--~----~------------~-------~--~----~
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