ADD: added script to create coverage report.

This commit is contained in:
2019-03-29 16:55:08 +01:00
parent 03bdc0f7c1
commit 4226e498f0
3 changed files with 14 additions and 0 deletions

1
.gitignore vendored
View File

@@ -9,3 +9,4 @@ django_dav_events.egg-info/
backup/
env/
test-screenshots/
tmp/

13
bin/coverage-html.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
BROWSER="firefox"
BASE_DIR="tmp/"
datetime=`date +'%Y%m%d-%H%M%S'`
report_dir="${BASE_DIR}coverage-report-${datetime}"
mkdir -p "$report_dir"
coverage html --skip-covered -d "$report_dir"
start_file="${report_dir}/index.html"
$BROWSER --new-window "$start_file" >/dev/null 2>&1 &