Property-based tests for Erlang with PropEr
10 steps · about 5 h 45 min · Intermediate
- John Hughes - Free QuickCheck for all (video, Erlang Factory / Vimeo, 50 min)
The inventor of QuickCheck explains how to find good properties and test data before you write any PropEr code.
- A really basic tutorial for PropEr beginners (tutorial, PropEr project, 40 min)
Your first hands-on properties: a sort function, ?FORALL, IMPLIES preconditions and shrinking of failing inputs.
- GitHub - proper-testing/proper: PropEr: a QuickCheck-inspired property-based testing tool for Erlang (repo, proper-testing on GitHub, 15 min)
The official source: install PropEr, include proper.hrl and run proper:quickcheck on a property.
- GitHub - ferd/rebar3_proper: Run PropEr test suites with rebar3 (repo, Fred Hebert, 20 min)
Moves your properties into a real project, with rebar3 proper, --retry to replay failures and stored regression cases.
- PropEr Erlang/Elixir: Property-Based Testing Deep Dive (2026) (article, HelpMeTest, 30 min)
A recent tour of generators, type-based generation, shrinking and stateful testing, so you can see what comes next.
- Stateful Properties (guide, PropEr Testing (propertesting.com), 45 min)
Explains the model, command and postcondition pattern that lets you test processes and gen_servers, not just pure functions.
- Tutorials on the PropEr use of this tool (tutorial, PropEr project, 45 min)
The official index links the statem tutorials for generic servers and process interaction, which put the stateful pattern into practice.
- A PropEr finite state machine tutorial (tutorial, PropEr project, 30 min)
Shows proper_fsm, where callbacks mirror a state diagram, for systems that behave like finite state machines.
- Tutorial for targeted property-based testing (tutorial, PropEr project, 30 min)
An advanced technique: steer input generation toward failures with ?MINIMIZE and simulated annealing.
- Experiences with QuickCheck: Testing the Hard Stuff and Staying Sane (article, John Hughes (Tufts CS archive), 40 min)
Closes with real industrial case studies, including race-condition hunting, showing what the techniques achieve at scale.