Free shipping on orders over $99
Property-Based Testing with PropEr, Erlang, and Eliixir

Property-Based Testing with PropEr, Erlang, and Eliixir

Find Bugs Before Your Users Do

by Fred Hebert
Paperback
Publication Date: 26/02/2019

Share This Book:

53%
OFF
RRP  $87.35

RRP means 'Recommended Retail Price' and is the price our supplier recommends to retailers that the product be offered for sale. It does not necessarily mean the product has been offered or sold at the RRP by us or anyone else.

$41.25
Property-based testing helps you create better, more solid tests with little code. By using the PropEr framework in both Erlang and Elixir, this book teaches you how to automatically generate test cases, test stateful programs, and change how you design your software for more principled and reliable approaches. You will be able to better explore the problem space, validate the assumptions you make when coming up with program behavior, and expose unexpected weaknesses in your design. PropEr will even show you how to reproduce the bugs it found. With this book, you will be writing efficient property-based tests in no time.

Most tests only demonstrate that the code behaves how the developer expected it to behave, and therefore carry the same blind spots as their authors when special conditions or edge cases show up. Learn how to see things differently with property tests written in PropEr.

Start with the basics of property tests, such as writing stateless properties, and using the default generators to generate test cases automatically. More importantly, learn how to think in properties. Improve your properties, write custom data generators, and discover what your code can or cannot do. Learn when to use property tests and when to stick with example tests with real-world sample projects. Explore various testing approaches to find the one that's best for your code. Shrink failing test cases to their simpler expression to highlight exactly what breaks in your code, and generate highly relevant data through targeted properties. Uncover the trickiest bugs you can think of with nearly no code at all with two special types of properties based on state transitions and finite state machines.

Write Erlang and Elixir properties that generate the most effective tests you'll see, whether they are unit tests or complex integration and system tests.

What You Need



Basic knowledge of Erlang, optionally Elixir
For Erlang tests: Erlang/OTP >= 20.0, with Rebar >= 3.4.0
For Elixir tests: Erlang/OTP >= 20.0, Elixir >= 1.5.0
ISBN:
9781680506211
9781680506211
Category:
Software testing & verification
Format:
Paperback
Publication Date:
26-02-2019
Publisher:
The Pragmatic Programmers
Country of origin:
United States
Pages:
376
Dimensions (mm):
235x191x20mm
Weight:
0.64kg

This item is In Stock in our Sydney warehouse and should be sent from our warehouse within 1-2 working days.

Once sent we will send you a Shipping Notification which includes online tracking.

Please check the estimated delivery times below for your region, for after your order is despatched from our warehouse:

ACT Metro  2 working days

NSW Metro  2 working days

NSW Rural  2 - 3 working days

NSW Remote  2 - 5 working days

NT Metro  3 - 6 working days

NT Remote  4 - 10 working days

QLD Metro  2 - 4 working days

QLD Rural  2 - 5 working days

QLD Remote  2 - 7 working days

SA Metro  2 - 5 working days

SA Rural  3 - 6 working days

SA Remote  3 - 7 working days

TAS Metro  3 - 6 working days

TAS Rural  3 - 6 working days

VIC Metro  2 - 3 working days

VIC Rural  2 - 4 working days

VIC Remote  2 - 5 working days

WA Metro  3 - 6 working days

WA Rural  4 - 8 working days

WA Remote  4 - 12 working days

 

Express Post is available if ALL items in your Shopping Cart are listed as 'In Stock'.

Reviews

Be the first to review Property-Based Testing with PropEr.