On Thu, 15 Jun 2006 09:24:48 -0700 "Andrey Petrov" <[EMAIL PROTECTED]> wrote:
> > 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 I wish I knew. I've wanted to do the same thing and run into the same errors... Jason
signature.asc
Description: PGP signature

