This repo showcases property-based and performance testing in Python done with:
- Python >=3.7 (+ pip3 available on PATH)
- make
This project uses virtualenv to isolate the environment in which it is being run.
For instance, on MacOS, you would have to run:
$ python3 -m venv test-venv
$ source test-venv/bin/activate
Mind the possible necessity of using a different activation script, see ls test-venv/bin
.
This project uses setuptools. To install the project in-place along with its dependencies run:
make install
The tests are written using property-based testing library Hypothesis. To run the tests:
make test
Benchmarking is done with pytest-benchmark library. To run the benchmarks:
make bench