Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

flaky_demo

A miniature pytest suite for exercising flaky-hunter:

  • test_flaky.py::test_clock_parity_is_even reads the wall clock and fails when the nanosecond count is even (~50% per process, no seed) — a genuinely nondeterministic flake that varies across separate pytest runs.
  • test_stable.py holds three deterministic tests that always pass.

Run the hunter over it:

python -m flaky_hunter --runs 10 --workdir examples/flaky_demo

Expected: test_flaky.py::test_clock_parity_is_even is reported as flaky with cause nondeterministic, while the test_stable.py tests are not flagged.