DEV Community

Discussion on: 169 JSJ Property-based Testing (QuickCheck) with Zach Kessin

Collapse
 
glebec profile image
Gabriel Lebec

Ca. 36:10 one of the presenters talks about how they are worried about the stochastic failures that randomness would introduce into a test suite. It is important to know that a good property testing library isn't random – it is pseudorandom, and reports the seed used for each test run. If you get a failure, you can reproduce the exact same test run by inputting the seed into the test config. This deterministic aspect of property tests is one of the key features that make it successful as a testing strategy.