From 56a355a1ffedcf11c2f55872ec96dc3d333974c8 Mon Sep 17 00:00:00 2001 From: "Patrick J. Roddy" Date: Tue, 22 Oct 2024 12:34:00 +0100 Subject: [PATCH 1/2] Add `hypothesis` for property based testing --- docs/pages/testing.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/pages/testing.md b/docs/pages/testing.md index ddc784ed..6eb2287b 100644 --- a/docs/pages/testing.md +++ b/docs/pages/testing.md @@ -20,3 +20,9 @@ layout: default | [pytest-cov](https://pytest-cov.readthedocs.io/en/latest/index.html) | A framework to generate coverage reports that plays nicely with `pytest`. | 🟢 | | [pytest-mock](https://pytest-mock.readthedocs.io/en/latest/index.html) | A framework to mock/patch objects that plays nicely with `pytest`. | 🟢 | | [pyfakefs](https://pytest-pyfakefs.readthedocs.io/en/latest/) | A plugin to create a full fake file system, for situations where you need something more complicated than the built in [`tmp_path` fixture](https://docs.pytest.org/en/stable/how-to/tmp_path.html#how-to-use-temporary-directories-and-files-in-tests). | 🟢 | + +## Property Based Testing + +| Name | Short description | 🚦 | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------ | :-: | +| [Hypothesis](https://hypothesis.readthedocs.io/en/latest/quickstart.html) | Allows one to easily test multiple inputs for a given function with ease | 🟢 | From 6e07f9fe7a539a443c71fef5060da7e7c88074df Mon Sep 17 00:00:00 2001 From: "Patrick J. Roddy" Date: Tue, 22 Oct 2024 12:40:57 +0100 Subject: [PATCH 2/2] Update docs/pages/testing.md Co-authored-by: Matt Graham --- docs/pages/testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pages/testing.md b/docs/pages/testing.md index 6eb2287b..93dd827b 100644 --- a/docs/pages/testing.md +++ b/docs/pages/testing.md @@ -21,7 +21,7 @@ layout: default | [pytest-mock](https://pytest-mock.readthedocs.io/en/latest/index.html) | A framework to mock/patch objects that plays nicely with `pytest`. | 🟢 | | [pyfakefs](https://pytest-pyfakefs.readthedocs.io/en/latest/) | A plugin to create a full fake file system, for situations where you need something more complicated than the built in [`tmp_path` fixture](https://docs.pytest.org/en/stable/how-to/tmp_path.html#how-to-use-temporary-directories-and-files-in-tests). | 🟢 | -## Property Based Testing +## Property based testing | Name | Short description | 🚦 | | ------------------------------------------------------------------------- | ------------------------------------------------------------------------ | :-: |