News for hackers. Stuff that matters.
Re:Hypothesis: Property-Based Testing for Python by IanCal on Wednesday November 05, 2025 @03:05AM (#45820562)
Hypothesis keeps a database of failures to use locally and you can add a decorator to mark a specific case that failed. So you run it, see the failure, add it as a specific case and then that’s committed to the codebase.

The randomness can bite a little if that test failure happens on an unrelated branch, but it’s not much different to someone just discovering a bug.

Re:Hypothesis: Property-Based Testing for Python by theptip on Wednesday November 05, 2025 @10:51AM (#45824233)
You can also cache the DB across CI runs, which will reduce the randomness (ie failures won’t just disappear between runs).