At the test level, DurationRunInvoker is the kind of thing you want.
Except you want to modify the logic so that instead of just timing the
test, it runs it repeatedly until the minimum amount of time passes.
Unfortunately what happens is that the result for all runs of that test
get lumped together.  Can't be helped, I'm afraid.  The best you can do
is to insert per-run statistics into the test output so you can see it.
 
At the test suite level I'm afraid there aren't any good solutions.
Your trick with the DurationTestRunner is perhaps the best that can be
achieved.  It's unfortunate you can to copy/paste the AutoRunner code
though.  I suppose we can make it unsealed but that's not much help
really.  Oh well.
 
So if you can live with your current workaround, I'm keeping your
request in mind for a future version of MbUnit.  =)
 
Jeff.

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED]
On Behalf Of Richard Louapre
Sent: Wednesday, July 18, 2007 9:16 AM
To: [email protected]
Subject: MbUnit Re: Add a TestCase to TestSuite at runtime.


Jeff,
 
I believe I got it. DurationRunInvoker is a good candidate. But
(correclty i'm worng) that will work only for a test case. I would like
to repeat my test suite and not only a single test case.
 
Thanks.
 
Ciao,
   Richard.

 
On 7/18/07, Richard Louapre <[EMAIL PROTECTED]> wrote: 

        Jeff,
         
        I am already using some custom TestDecoratorAttribute, but I'm
not clear how to implement that one. Could you please post a code
snippet?
         
        Thanks.
         
        Ciao,
        
           Richard.
        
         
        On 7/18/07, Jeff Brown <[EMAIL PROTECTED] > wrote: 
        

                I've just made a TODO note for MbUnit Gallio to support
dynamically created sub-tests.  No promises but I'm thinking about it.
There are a lot of interesting cases for a feature that allows sub-tests
to be created at runtime.  The test runner probably wouldn't know about
these things but they would show up in the final report. 
                 
                Jeff.

________________________________

                From: Jeff Brown 
                Sent: Tuesday, July 17, 2007 9:32 PM
                To: ' [email protected]
<mailto:[email protected]> '
                Subject: RE: MbUnit Add a TestCase to TestSuite at
runtime.
                
                 
                Something similar is possible.  You can create a new
TestDecoratorAttribute that runs a test repeatedly for a set period of
time.  If any of the iterations fail, then the test should fail.  In the
report, this will appear as a single test result though... 
                 
                That's the best I can think of right now I'm afraid...
                 
                Jeff.

________________________________

                From: [email protected] [mailto:
[email protected] <mailto:[email protected]> ] On
Behalf Of Richard Louapre
                Sent: Tuesday, July 17, 2007 7:04 AM
                To: [email protected]
                Subject: MbUnit Add a TestCase to TestSuite at runtime.
                
                 
                Hi,
                 
                I would like to execute the same TestCase for a time
period. I'm not sure if it is possible.
                 
                So I was looking for a way to add TestCase to a
TestSuite at runtime.
                 
                Is there a better way to achieve that?
                 
                Thanks.
                 
                Ciao,
                   Richard.
                
                
                                
                


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