[36f02a]: coverage-report-all.sh Maximize Restore History

Download this file

coverage-report-all.sh    25 lines (20 with data), 727 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
#
# This script calculates global codebase coverage, based on coverage
# of individual application packages.
#
DIRS="Allura Forge*"
EXCLUDES='*/migrations*,*/ez_setup/*,*allura/command/*'
for dir in $DIRS; do
if [ ! -f $dir/.coverage ]; then
echo "$dir/.coverage not found - please run ./run_test --with-coverage first"
else
ln -sf $dir/.coverage .coverage.$dir
fi
done
coverage combine
coverage report --ignore-errors --include='Allura/*,Forge*' --omit=$EXCLUDES
if [ "$1" = "--html" ]; then
coverage html --ignore-errors --include='Allura/*,Forge*' --omit=$EXCLUDES -d report.coverage
coverage html --ignore-errors --include='Allura/*' --omit=$EXCLUDES -d Allura.coverage
fi