NUnit has a RepeatAttribute, but that will repeat the test n times
or until it fails. Do folks think we should add an attribute like
'Retry' that does
the opposite?
Meanwhile, your best recourse is to use a loop in your test itself.
Charlie
> --
> You received this message because you are subscribed to the Google Groups "NUnit-Discuss" group.
> To post to this group, send email to nunit-...@googlegroups.com.
> To unsubscribe from this group, send email to nunit-discus...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/nunit-discuss?hl=en.
>
>
What do others think about this idea, i.e.:
An attribute [Retry(int numTimes)] that would cause a test to be rerun up
to the specified number of times until it passes.
Alternatively, we could add some sort of property to the existing
RepeatAttribute
to make it work in that way, but I'm more inclined toward a separate attribute
if we do it at all.
Charlie
Off the top of my head, I can't see any reason for ignore a
"sometimes" failing test that doesn't have the potential for trouble
down the road, as John suggests below.
I'm not going to argue against the inclusion of such functionality, I
just can't see a reason to use it.
There was a fair amount of discussion about this on the list, mostly
negative. Quoting myself, as of February 15:
> Because of the lack of enthusiasm for the feature, which is clear
> in most of the replies to the earlier discussion, this was not done
> for NUnit 2.6. I'll reconsider how Repeat/Retry might work in the
> new 3.0 release.
A good way to ensure this doesn't get lost will be for somebody to
submit a feature request at http://bugs.launchpad.net/nunit-3.0 :-)
Charlie
> --
> You received this message because you are subscribed to the Google Groups
> "NUnit-Discuss" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/nunit-discuss/-/aDFD4SnSL_QJ.