root/branches/mk/support/generate_coverage.sh

Revision 107, 0.5 kB (checked in by mk, 6 years ago)

Don't generate coverage for config module (as it doesn't exist anymore).

Line 
1 #!/bin/sh
2
3 tempfile=/tmp/coverage.tmp
4
5 # Generate coverage statistics for Cheesecake.
6 python /usr/lib/python2.4/site-packages/coverage.py -r \
7     cheesecake/util.py \
8     cheesecake/cheesecake_index.py \
9     cheesecake/codeparser.py \
10     cheesecake/logger.py > $tempfile
11
12 # Show generated coverage statistics on standard output.
13 cat $tempfile
14
15 # Save formatted output into HTML file.
16 cat $tempfile| python support/cover2html.py > $1/coverage.html
17
18 # Give read permissions so that web server can read generated files.
19 chmod 755 $1/coverage.html
Note: See TracBrowser for help on using the browser.