This repository contains the source code for our tutorial: Introduction to properties-driven development.
Most of the tests are written with Hypothesis, a Python library for generative test cases.
If you run into problems or have any questions, please open an issue or reach out to us on Gitter.
Clone this repository and move into the directory:
git clone https://github.com/meeshkan/properties-driven-development-tutorial.git
cd properties-driven-development-tutorial
Once you're there, create a virtual environment.
Then, install the dependencies:
pip install --upgrade -e .[dev]
Finally, run the tests with pytest
:
pytest
- 📚 Property-Based Testing with PropEr, Erlang, and Elixir by Fred Hebert
- 📖 From 1 to 10,000 test cases in under an hour: A beginner's guide to property-based testing by our colleagues Carolyn Stransky and Fredrik Fornwall
- 🔗 Hypothesis Quick Start Guide
- 📖 My Take on Property-Based Testing by Brujo Benavides
Notice a bug? Interested in adding a new section to our guide? Have any other property-based testing resources you think we should know? The best way to get involved is to open an issue.
Please note that this project is governed by the Meeshkan Community Code of Conduct. By participating, you agree to abide by its terms.
At Meeshkan, we're working to improve how people test their products. So no matter if you loved or loathed our guide, we want to hear from you.
Here are some ways you can get in touch: