Maximise your test coverage by combining property-based testing with scenarios

Matt Stephens
codeburst
Published in
5 min readJan 6, 2020

--

Would you trade stories for properties? [Photo credit: Steve Miller]

You’d think they are mutually exclusive. Scenario-based testing and property-based testing present entirely different approaches to what is essentially the same problem: you want to detect bugs in your code and prevent regressions later.

But as I’ll demonstrate in this article, they complement each other remarkably well.

--

--

DomainOrientedTesting.com — Articles on: Domain Driven Design, unit testing, TDD, DOT, software architecture, clean coding (and code cleaning)