venom icon indicating copy to clipboard operation
venom copied to clipboard

support retry of failure

Open guoweis-work opened this issue 2 years ago • 3 comments

I have been using venom. Since this is real-life, e2e testing, sometimes there is instability in the environment which could cause test failure. Instead of rerunning everything, which is time consuming, I'm hoping we could have a feature to just retry the failed ones up to X time.

if this seems a reasonable idea to you, I'd love to submit a PR for this. Thoughts?

guoweis-work avatar Jun 29 '22 16:06 guoweis-work

Check this out and see if it fits your use case: https://github.com/ovh/venom#testsuites the very last example there are keys retry: # (this is the number of times the test will re-try if it fails) retry_if: (this is a list of conditions that will cause the test to fail and retry) delay: # (this is the number of seconds to wait in between each failed test)

djloude avatar Jun 29 '22 19:06 djloude

my test cases have dependency. i.e. i use the output from one test case as input to next one. What I want to retry is the whole test suite, not just a single test case

guoweis-work avatar Jun 30 '22 03:06 guoweis-work

Hello @guoweis-outreach, You would like to retry a whole testsuite, or just a testcase ?

fsamin avatar Aug 02 '22 08:08 fsamin

I close this issue, it has been inactive for a while. Feel free to reopen if needed.

yesnault avatar Oct 21 '23 08:10 yesnault