testthat
testthat copied to clipboard
Snapshot failures should not count in max number of failures allowed
Otherwise we need to set TESTTHAT_MAX_FAILS to Inf to update all snapshots in one go.
Somewhat related to https://github.com/r-lib/testthat/issues/1402 where we at least allowed the current test file to finish running so you could update snaps for that file and then rerun
I've spent some time on this workflow in the past, and I think what we have currently isn't too bad. If you have a bunch of snapshot failure, you'll get the clickable "Set TESTTHAT_MAX_FAILS" error, and then you just re-run.