I'm using modwsgi with Apache 2.2.15 with several wsgi processes.
I want to check code coverage for my python application. I'm new to
this, and from what I've seen there are a lot of references to
coverage.py
http://nedbatchelder.com/code/coverage/

But I am unsure what is the correct way to integrate it.
A possible way is to wrap the application code with coverage code

import coverage

def application(environ, start_response):
    cov = coverage.coverage()
    cov.start()

    # ..  my code ..

    cov.stop()
    cov.save()

But this doesn't seem very useful to me - it only covers a single code
run at a time.

Has anyone had any experience with this or any other coverage tool with wsgi?

Thank you

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to