| Crates.io | deflake-rs |
| lib.rs | deflake-rs |
| version | 0.1.0 |
| created_at | 2025-07-04 10:27:02.20954+00 |
| updated_at | 2025-07-04 10:27:02.20954+00 |
| description | cargo-deflake is a command that detects flaky tests based on what tests fail and what code has changed |
| homepage | |
| repository | https://codeberg.org/benmagill/deflake.rs |
| max_upload_size | |
| id | 1737758 |
| size | 223,689 |
Flaky test detection for Rust
The idea came from my undergraduate dissertation supervisor, Phil McMinn, and is based off the DeFlaker paper by Bell et al.
Uses per test code coverage & diff of changes since previous commit to determine if modifications could have caused a test to fail.
cargo deflake run tests and classify failures
cargo deflake --help see all configuration options
cargo-binutils, rustfilt and llvm-tools-preview are required at the moment to run the tool
cargo install cargo-binutils
rustup component add llvm-tools-preview
cargo install rustfilt
cargo deflake
Can run local version against other repos by building and adding /path/to/repository/target/debug to your systems path.