From 206cd282e673f63867a8da1df408ae91be01afcb Mon Sep 17 00:00:00 2001 From: moanos Date: Sat, 18 Jan 2025 18:29:04 +0100 Subject: [PATCH] feat: Add coverage report instructions --- .coveragerc | 4 ++++ README.md | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..766cf9b --- /dev/null +++ b/.coveragerc @@ -0,0 +1,4 @@ +[run] +omit = + */migrations/* + */tests/* \ No newline at end of file diff --git a/README.md b/README.md index e673bc1..4117751 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,26 @@ docker push moanos/notfellchen:latest docker run -p8000:7345 moanos/notfellchen:latest ``` +## Testing + +Tests can be run with + +```zsh +nf test src +``` + +If you want to report on code coverage run + +```zsh +coverage run --source='.' src/manage.py test src +``` + +and + +``` +coverage report +``` + ## Geocoding Geocoding services (search map data by name, address or postcode) are provided via the