Skip to main content

Crate dev_flaky

Crate dev_flaky 

Source
Expand description

§dev-flaky

Flaky-test detection for Rust. Part of the dev-* verification suite.

Runs the test suite N times and tracks which tests pass every run vs which fail sometimes. Emits per-test reliability as dev-report::Report.

§Why

Flaky tests rot trust in your test suite. After enough false alarms, developers start ignoring failures, and then real failures get missed. dev-flaky detects flakiness automatically so you can quarantine or fix the worst offenders.

§Quick example

use dev_flaky::FlakyRun;

let run = FlakyRun::new("my-crate", "0.1.0").iterations(20);
let result = run.execute().unwrap();
let report = result.into_report();

§Status

Pre-1.0. API shape defined; subprocess integration lands in 0.9.1.

Structs§

FlakyResult
Result of a flaky-test run.
FlakyRun
Configuration for a flaky-test detection run.
TestReliability
Per-test reliability record.

Enums§

FlakyError
Errors that can arise during a flaky-test run.