dwyl / dwyl/learn-elixir

Property Based Testing

Open
#93 3 comments 5 reactions 0 assignees View on GitHub
enhancement
Dominant language
Elixir
Stars
1.7k
Forks
112
PR merge metrics
No merged PRs in 30d

Description

Property based tests are tests that assert certain properties are always satisfied by your code. Instead of just testing that your code works on one input, they provide a range of inputs, making sure the property is satisfied every time. [This article](https://techbeacon.com/how-make-your-code-bulletproof-property-testing) is a good introduction to property based testing in general.

Property based testing is very popular among the functional language community, including Elixir.

### Articles
* https://elixir-lang.org/blog/2017/10/31/stream-data-property-based-testing-and-data-generation-for-elixir/
* https://jeffkreeftmeijer.com/mix-proper/
* http://whatdidilearn.info/2018/04/22/property-based-testing.html

### Books
* https://pragprog.com/book/fhproper/property-based-testing-with-proper-erlang-and-elixir

### Videos
* https://youtu.be/x2ckfhqB9nA?t=1964 - Keynote - José Valim - ElixirConf EU 2018
* https://www.youtube.com/watch?v=p84DMv8TQuo - Property-based Testing is a Mindset - Andrea Leopardi - ElixirConf EU 2018

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.