3 # Author: Felix Wiemann
4 # Contact: Felix_Wiemann@ososo.de
7 # Copyright: This script has been placed in the public domain.
11 if test "$proj" == test; then
18 echo "Performing code coverage test for project \"$proj\"..."
20 echo "Please be patient; coverage tracking slows test execution down by more"
21 echo "than factor 10."
26 python
-u -m trace
--count --coverdir=cover
--missing alltests.py
34 find "$proj" -name \
*.py |
while read i
; do
36 test -f test
/cover
/"${i//\//.}".cover -o "${i##*/}" == Template || echo "${i//\//.}" "`cat "$i.py
" | wc -l`"
39 find . \
( -name .
-o ! -name "$proj".\
* -exec rm {} \
; \
)
41 sed 's/^>>>>>> \(.*"""\)/ \1/' < "$i" > "${i%.cover}"
44 for i
in *; do echo -n "$i "; grep -c '^>>>>>> ' "$i" || true
; done
45 ) |
grep -v ' 0$' |
sort -nk 2