[Retry]
will re-run the test if it fails, and only fail if ALL runs fail.[Repeat]
will re-run the test if it passes, and only pass if ALL runs pass.
So ... what's the expected behaviour if you attach both attributes?
Which attribute is on the inside, and which is on the outside?
If [Retry]
is on the outside, then you're asserting:
- "This has to be generally very stable, but the occasional flicker is OK."
- e.g.
[Repeat(50), Retry(3)]
says "you have to be able to manage 50 successes in a row, but you get 3 attempts to do that."
If [Repeat]
is on the outside, then you're asserting:
- "This generally doesn't fail ALL the time. It will consistently work if you try a few times."
- e.g.
[Repeat(50), Retry(4)]
says "In pretty much EVERY set of 4, at least one of the executions will have succeeded."
As far as I can tell, the docs I can see don't give any indication. :(