Hi,
I'm trying to setup code coverage reporting from my nosetests. Has
anyone done this successfully with a TurboGears project?
I noticed the -l flag:
-l, --coverage Include coverage report in output
[NOSE_COVERAGE]
So I installed the coverage module in the nose package, and it runs but
I get a bunch of errors to the effect of:
from turbogears import config
ImportError: cannot import name config
That and it runs coverage on a bunch of other modules (TG, Kid,
CherryPy, etc) which I'm not interested in. I just want it to run
coverage on my code. So I tried it with:
nosetests -l -p myproject/tests/
which seems to cut back on the amount of output, but the same error as
mentioned above still occurs.
Versions:
TurboGears 0.9a6
nosetests 0.8.6
coverage 2.5.20051204
Python 2.4.3
Any insight would be much appreciated.
Thanks,
- Andrey
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears
-~----------~----~----~----~------~----~------~--~---