https://cypress.io logo
Cypress has a build in retry method to retry test ...
# best-practices
m
Cypress has a build in retry method to retry test after fail. But that means you need to have a proper setup on how you talk to the Database. But if something fails in the CI then you will have to test of sometimes fix things on your local machine right? You are not just going to keep rerunning test in the CI until you see something pass. Because if you have a test that is failing in the CI and you want to rerun only that on your local machine then you change your it() to it.only() this will run only this test. If all your test are dependent of each other then i think you should change how your test are working. Or at least have a method that creates the data needed for a test so that the test can run independent from the other
2 Views