- Book Chapter
9
- 10.1007/978-3-030-47147-7_4
How to Specify It!
- Jan 01, 2020
- John Hughes
Property-based testing tools test software against a specification, rather than a set of examples. This tutorial paper presents five generic approaches to writing such specifications (for purely functional code). We discuss the costs, benefits, and bug-finding power of each approach, with reference to a simple example with eight buggy variants. The lessons learned should help the reader to develop effective property-based tests in the future.
Read more