From 9b16ae617869434011580d1ac77dd7a1acee123b Mon Sep 17 00:00:00 2001 From: Julian Lobbes Date: Wed, 16 Nov 2022 11:46:44 +0100 Subject: [PATCH] feat(tests): add test coverage reporting --- README.md | 4 +++- requirements.txt | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a2032f4..66d7b44 100644 --- a/README.md +++ b/README.md @@ -12,5 +12,7 @@ Make sure all dependencies listed in `requirements.txt` are installed. To run all unit tests, simply run the following from within the repository root: ```bash -pytest +coverage run -m pytest && coverage report ``` + +This will run all unit tests and display the test coverage in your terminal. diff --git a/requirements.txt b/requirements.txt index 4a90939..65b5d78 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ Flask==2.2.2 ldap3==2.9.1 pytest==7.2.0 +coverage==6.5.0 Pillow==9.3.0