nose-devs/nose — Issue #8: coverage plugin exception b/c of missing file
Author: jpellerin
Created: 2011-12-14 15:54:33+00:00
State: open

Not sure what is causing this, but I am getting the following traceback sometimes when running with covered tests:

Name Stmts Exec Cover Missing
-------------------------------------------------------------
sqlalchemybwp 1 0 0% 1
sqlalchemybwp. 1 0 0% 1
sqlalchemybwp..lib 1 0 0% 1
sqlalchemybwp..lib.middleware 28 0 0% 1-44
sqlalchemybwp.events 5 0 0% 1-6
sqlalchemybwp.lib 1 0 0% 1
sqlalchemybwp.lib.declarative 61 23 37% 1-16, 23, 27, 37, 46, 51, 55, 60, 67, 79-90, 94-103, 107-109
sqlalchemybwp.lib.decorators 33 18 54% 1-7, 24-30, 44-52, 63, 66-70
sqlalchemybwp.lib.helpers 56 11 19% 1-5, 7, 10, 24-76
sqlalchemybwp.lib.middleware 28 0 0% 1-44
sqlalchemybwp.tasks 1 0 0% 1
sqlalchemybwp.tasks.clear_db 3 0 0% 1-4
sqlalchemybwp.tasks.init_db 5 0 0% 1-10
-------------------------------------------------------------
TOTAL 224 52 23%
Traceback (most recent call last):
File "/home/rsyring/dev/blaze/sabwp-venv/bin/nosetests", line 8, in
load_entry_point('nose==0.11.3', 'console_scripts', 'nosetests')()
File "/home/rsyring/dev/blaze/sabwp-venv/lib/python2.6/site-packages/nose-0.11.3-py2.6.egg/nose/core.py", line 117, in __init__
**extra_args)
File "/usr/lib/python2.6/unittest.py", line 817, in __init__
self.runTests()
File "/home/rsyring/dev/blaze/sabwp-venv/lib/python2.6/site-packages/nose-0.11.3-py2.6.egg/nose/core.py", line 196, in runTests
result = self.testRunner.run(self.test)
File "/home/rsyring/dev/blaze/sabwp-venv/lib/python2.6/site-packages/nose-0.11.3-py2.6.egg/nose/core.py", line 63, in run
result.printErrors()
File "/home/rsyring/dev/blaze/sabwp-venv/lib/python2.6/site-packages/nose-0.11.3-py2.6.egg/nose/result.py", line 103, in printErrors
self.config.plugins.report(self.stream)
File "/home/rsyring/dev/blaze/sabwp-venv/lib/python2.6/site-packages/nose-0.11.3-py2.6.egg/nose/plugins/manager.py", line 93, in __call__
return self.call(*arg, **kw)
File "/home/rsyring/dev/blaze/sabwp-venv/lib/python2.6/site-packages/nose-0.11.3-py2.6.egg/nose/plugins/manager.py", line 161, in simple
result = meth(*arg, **kw)
File "/home/rsyring/dev/blaze/sabwp-venv/lib/python2.6/site-packages/nose-0.11.3-py2.6.egg/nose/plugins/cover.py", line 178, in report
self.coverHtmlDir)
File "/home/rsyring/dev/blaze/sabwp-venv/lib/python2.6/site-packages/nose-0.11.3-py2.6.egg/nose/plugins/cover.py", line 204, in htmlAnnotate
data = open(coverfile, 'r').read().split('\n')
IOError: [Errno 2] No such file or directory: '/home/rsyring/dev/blaze/sabwp-venv/src/default/sqlalchemybwp/lib/helpers.py,cover'

The attached file contains a fix to the reporting so that it will continue in case of this error. However, there is obviously an underlying error and I am not familiar enough with cover to figure out why the file it is looking for is not there.

Google Code Info:
Issue #: 346
Author: rsyr...@gmail.com
Created On: 2010-06-23T23:00:46.000Z
Closed On: