ADD: added script to create coverage report.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -9,3 +9,4 @@ django_dav_events.egg-info/
|
||||
backup/
|
||||
env/
|
||||
test-screenshots/
|
||||
tmp/
|
||||
|
||||
13
bin/coverage-html.sh
Executable file
13
bin/coverage-html.sh
Executable 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 &
|
||||
Reference in New Issue
Block a user