DeepRead
Cover of Property-Based Testing with PropEr, Erlang, and Elixir

Property-Based Testing with PropEr, Erlang, and Elixir

Fred Hebert · 2019

Programming and computer science › Functional programming languages

#5,819 most recommended

About the book

A practical guide to property-based testing with PropEr, a QuickCheck-style library for Erlang that also works from Elixir. It covers writing generators, properties, and shrinking, and extends to stateful and concurrent systems. The examples are aimed at developers testing Erlang and Elixir code. Hand-picked example tests check only the inputs their authors thought of, while properties state invariants that should hold across a large space of generated inputs. Stateful testing, which models a system's expected behaviour as a state machine and checks real behaviour against it, is presented as the most valuable use of the technique for complex systems. The author also argues that shrinking, which reduces a failing input to a minimal counterexample, makes such failures far easier to diagnose than random failures alone.

Written by Claude from what it knows of this book.

What Hacker News says 50% recommend · 0% critical

024201920202022202420252022 peak · 3
This bookAverage book in Functional programming languages

In the commenters’ own words

  • One past discussion: What is property based testing? - https://news.ycombinator.com/item?id=14017578 - April 2017 (33 comments) Loosely related: In praise of…

    dang · 2021 · in What is property-based testing? (2016)

  • Well this is technically the fourth one I'm working on. All are available for free online because I want these resources to be accessible first and foremost…

    mononcqc · 2019 · in Adopting Erlang

What Open Library readers say

No Open Library reader has rated it yet.

  • 1 want to read
  • 0 reading
  • 0 have read

Open Library’s page for the book

What critics say, via Wikipedia

No Wikipedia article about this book yet, so no critics to quote.

Reddit communities — coming later

The threads it came up in

Details

First published
2019
ISBN
9781680506211
Editions known
2 at Open Library
Open Library
OL19542011W

Mathematics

Explore in the mosaic

Read next: its neighbours on the mosaic