[TIP] (no subject)

Kamal Ahmed kamal2222ahmed at yahoo.com
Sat Jun 2 14:26:02 PDT 2012


Ned,
I was actually trying to use your "coverage" library.
My Mistake , i separated the two commands and coverage works like a champ.
coverage run tests/run.py --with-xunit
coverage xml

correct me if i am wrong, but the error refers to : "coverage", does not have an attribute "xml".

Thanks,




>________________________________
> From: Ned Batchelder <ned at nedbatchelder.com>
>To: Kamal Ahmed <kamal2222ahmed at yahoo.com> 
>Cc: "py-dev at codespeak.net" <py-dev at codespeak.net>; "testing-in-python at lists.idyll.org" <testing-in-python at lists.idyll.org> 
>Sent: Saturday, June 2, 2012 4:50 PM
>Subject: Re: [TIP] (no subject)
> 
>
>On 6/2/2012 4:36 PM, Kamal Ahmed wrote: 
>Hi, 
>>When trying to run nosetests ( 1.1.2 ) with Python 2.7.2, i get the following error:
>>
>>
>>coverage run tests/run.py --with-xunit coverage.xml
Hi, what were you intending to happen with this command line?  Why does "coverage.xml" mean here?
>
>--Ned.
>
>E
======================================================================
ERROR: Failure: AttributeError ('module' object has no attribute 'xml')
----------------------------------------------------------------------
Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/nose-1.1.2-py2.7.egg/nose/loader.py", line 379, in loadTestsFromName module = resolve_name(addr.module) File "/usr/local/lib/python2.7/dist-packages/nose-1.1.2-py2.7.egg/nose/util.py", line 331, in resolve_name obj = getattr(obj, part)
AttributeError: 'module' object has no attribute 'xml'
>>Any ideas how this can be resolved ?
>>Code snippet:
>>328     obj = module
329     log.debug("resolve: %s, %s, %s, %s", parts, name, obj, module)
330     for part in parts:
331         obj = getattr(obj, part)
332     return obj
333 
334 
>>
>>
>>
>>
>>_______________________________________________
testing-in-python mailing list testing-in-python at lists.idyll.org http://lists.idyll.org/listinfo/testing-in-python 
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20120602/fc0a4649/attachment.htm>


More information about the testing-in-python mailing list