From 9aa17d0528c91f797d6f1707c0547066b53d77d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20I=C3=9Fbr=C3=BCcker?= Date: Fri, 14 May 2021 12:23:11 +0200 Subject: [PATCH] Add code coverage script --- .coveragerc | 2 ++ coverage.sh | 5 +++++ requirements.txt | 1 + 3 files changed, 8 insertions(+) create mode 100644 .coveragerc create mode 100755 coverage.sh diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..61e32eb --- /dev/null +++ b/.coveragerc @@ -0,0 +1,2 @@ +[run] +source = bookmarks diff --git a/coverage.sh b/coverage.sh new file mode 100755 index 0000000..491cd15 --- /dev/null +++ b/coverage.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +coverage erase +coverage run manage.py test +coverage report --sort=cover diff --git a/requirements.txt b/requirements.txt index d43de1a..0997de8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,6 +2,7 @@ beautifulsoup4==4.7.1 certifi==2019.6.16 chardet==3.0.4 confusable-homoglyphs==3.2.0 +coverage==5.5 Django==2.2.20 django-appconf==1.0.3 django-compressor==2.3