Code-coverage tools for CherryPy.
To turn on coverage tracing, use the following code:
DO NOT subscribe anything on the ‘start_thread’ channel, as previously recommended. Calling start once in the main thread should be sufficient to start coverage on all threads. Calling start again in each thread effectively clears any coverage data gathered up to that point.
Run your code, then use the
covercp.serve() function to browse the
results in a web browser. If you run this module from the command line,
it will call
serve() for you.