Pytest repeat

It is a good practice to test your functions to make sure they work as expected, but sometimes you need to test 100 times until you found the rare cases when the test fails. That is when pytest-repeat comes in handy.

Yesterday, I tested with 100 instances and found 2 failed tests! I’m glad that I didn’t settle down for 10 passed tests. You can find the doc for pytest-repeat here

Scroll to Top