A wrapper for cargo test that remembers and runs failed tests
cargo test
cargo install cargo-testf
cargo testf
It will run all tests, unless one or many tests failed previously. In which case only those tests will run.