root/branches/mk/support/generate_coverage.sh

Revision 53, 0.6 kB (checked in by mk, 7 years ago)

Show coverage statistics on standard output.

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/config.py \
11     cheesecake/logger.py > $tempfile
12
13 # Show generated coverage statistics on standard output.
14 cat $tempfile
15
16 # Save formatted output into HTML file.
17 cat $tempfile| python support/cover2html.py > $1/coverage.html
18
19 # Give read permissions so that web server can read generated files.
20 chmod 755 $1/coverage.html
Note: See TracBrowser for help on using the browser.