- I have been debugging some race conditions involving CUDA (unit tests can fail non-deterministically). So far, I’m doing something like:
while true; do cargo test --features="gpu"; done
- However, I’d prefer to have cargo test just run each test 1_000_000 times. Is there a way to do this?
- Why not put a for loop in the unit test itself?
Sometimes, I want to do a quick test of “is the algorithm even approximately correct” (and have it only run once). It’s only after I’m pretty sure the algorithm is “basically correct” what I want to run a torture test.