Skip to content

Further reading

The ideas on these pages are older than proptastic. When you want the reasoning behind a pattern, or the evidence that it finds bugs, these are the sources. Each is listed once, with a line on what it’s for; the other pages point here.

Koen Claessen and John Hughes. “QuickCheck: A Lightweight Tool for Random Testing of Haskell Programs.” Proceedings of the Fifth ACM SIGPLAN International Conference on Functional Programming (ICFP 2000), pages 268–279. doi:10.1145/351240.351266

The paper that started property-based testing: properties written as code, random inputs, and a counterexample when one fails. Its first examples include a round trip: reversing a list twice gives the list back.

John Hughes. “Experiences with QuickCheck: Testing the Hard Stuff and Staying Sane.” In A List of Successes That Can Change the World: Essays Dedicated to Philip Wadler, Lecture Notes in Computer Science 9600, pages 169–186. Springer, 2016. doi:10.1007/978-3-319-30936-1_9

Properties on real systems: testing stateful code against a model, run as a sequence of operations, and the bugs it found in industry. The background to the invariant and compare with a reference pages.

John Hughes. “How to Specify It! A Guide to Writing Properties of Pure Functions.” In Trends in Functional Programming (TFP 2019), Lecture Notes in Computer Science 12053, pages 58–83. Springer, 2020. doi:10.1007/978-3-030-47147-7_4

How to choose what to check. It compares five kinds of property (invariants, postconditions, metamorphic properties, inductive properties and model-based properties) by how many of eight buggy implementations each one catches. The best guide to the patterns as a whole.

David R. MacIver and Alastair F. Donaldson. “Test-Case Reduction via Test-Case Generation: Insights from the Hypothesis Reducer.” In 34th European Conference on Object-Oriented Programming (ECOOP 2020), Leibniz International Proceedings in Informatics 166, pages 13:1–13:27. doi:10.4230/LIPIcs.ECOOP.2020.13

Shrinking the sequence of choices a test drew, rather than the values made from them, so every smaller input is one the domain could have drawn. Shrinking says how proptastic shrinks the same way.

Andreas Löscher and Konstantinos Sagonas. “Targeted Property-Based Testing.” In Proceedings of the 26th ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA 2017), pages 46–56. doi:10.1145/3092703.3092711

Giving each try a score and searching toward the highest, so a property reaches inputs random tries rarely draw. Targeted tries is proptastic’s.

Rohan Padhye, Caroline Lemieux, Koushik Sen, Mike Papadakis and Yves Le Traon. “Semantic Fuzzing with Zest.” In Proceedings of the 28th ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA 2019), pages 329–340. doi:10.1145/3293882.3330576

Coverage-guided search over the choices a generator makes, not the bytes of an input, so every input it tries is one the generator could make. Coverage-guided fuzzing is proptastic’s.

Alperen Keles, Jessica Shi, Nikhil Kamath, Tin Nam Liu, Ceren Mert, Harrison Goldstein, Benjamin C. Pierce and Leonidas Lampropoulos. “Etna: An Evaluation Platform for Property-Based Testing.” Journal of Functional Programming 36, 2026. doi:10.46298/jfp.17867

Many ways of generating inputs, run over the same set of injected bugs ten times each: generators written for the job, which build only valid inputs, solved every task, and coverage-guided fuzzers “exhibit more variance” from run to run. Coverage-guided fuzzing says what that means for when to search.

T. Y. Chen, S. C. Cheung and S. M. Yiu. “Metamorphic Testing: A New Approach for Generating Next Test Cases.” Technical Report HKUST-CS98-01, Department of Computer Science, The Hong Kong University of Science and Technology, 1998. Posted as arXiv:2002.12543 in 2020.

Where metamorphic testing began: new tests made from tests that passed, by a relation the outputs must keep, for when no one can say what the right output is.

Sergio Segura, Gordon Fraser, Ana B. Sanchez and Antonio Ruiz-Cortés. “A Survey on Metamorphic Testing.” IEEE Transactions on Software Engineering 42(9), pages 805–824, 2016. doi:10.1109/TSE.2016.2532875

A survey of the metamorphic relations people have used, and the kinds of software they found bugs in.

Tsong Yueh Chen, Fei-Ching Kuo, Huai Liu, Pak-Lok Poon, Dave Towey, T. H. Tse and Zhi Quan Zhou. “Metamorphic Testing: A Review of Challenges and Opportunities.” ACM Computing Surveys 51(1), article 4, 2018. doi:10.1145/3143561

Twenty years on, by the method’s founders: how to find good relations, and what’s still open.

Earl T. Barr, Mark Harman, Phil McMinn, Muzammil Shahbaz and Shin Yoo. “The Oracle Problem in Software Testing: A Survey.” IEEE Transactions on Software Engineering 41(5), pages 507–525, 2015. doi:10.1109/TSE.2014.2372785

The problem every pattern answers: knowing whether an output is right. It surveys the ways round it, from a reference implementation to metamorphic relations.

Scott Wlaschin. “Choosing properties for property-based testing.” F# for Fun and Profit, 12 December 2014.

A friendly tour of the patterns, under memorable names: “there and back again” for a round trip, “the more things change, the more they stay the same” for idempotence, “different paths, same destination” for commutativity, “some things never change” for an invariant, and “the test oracle” for comparing with a reference. A good first read before the papers.

Privacy