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