Chance Makes Good Tests
summary
A bug-hunting workflow for Java unit tests using a randomized-testing framework that injects and logs the exact random seed so failures can be reproduced. The framework randomizes nodes, shards, replicas, index names, locales (including rare ones like Azerbaijan), time zones and test order, detects stray threads, and lets you annotate or force values; implementation details cover seed injection, a property to pick or randomize locale, and the limitation that it works with JUnit4 only.
AI-written summary · about
chapters (8)
- 0:00Randomized testing importance
- 1:52Randomized testing framework
- 3:55Java framework setup
- 6:25Bug replication with seed
- 8:12Locales and random resources
- 10:21Resource leak detection
- 11:23Locale bug fix case
- 12:50Framework limits and conclusion
related talks
45mRandomized testing: Gotta Catch ‘Em All
29mRandomness In Tests (Don't Do It)
42mMake your tests fail
56mRandom Testing
42mTesting on Thin Ice: Chipping Away at Test Unpredictability
01h 19mYou Can't Test This? Hammertime!
43mTesting: Property-based testing - let your testing library work(...)
27mRANDOM DATA GENERATION WITH SCALACHECK
