Depending on what problem youโre trying to solve, there are two primary ways of using replay.
Record failures on PRs
This is useful for debugging failing tests in pull requests. It only records failing tests so thereโs minimal overhead, and those replays will be available for debugging immediately after tests finish.
Run your tests and pass the mode
record-on-retry
.bashnpx @replayio/cypress run --mode record-on-retry
Record all on merge to master
This is useful for busting flakes. It only records failing tests so thereโs minimal overhead, and those replays will be available for debugging immediately after tests finish.
Run your tests as usual, but set the trigger to only run on merge to master.