Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coverage plugin exception b/c of missing file #8

Open
jpellerin opened this issue Dec 14, 2011 · 3 comments
Open

coverage plugin exception b/c of missing file #8

jpellerin opened this issue Dec 14, 2011 · 3 comments
Assignees

Comments

@jpellerin
Copy link
Member

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: [email protected]
Created On: 2010-06-23T23:00:46.000Z
Closed On:

@ghost ghost assigned jpellerin Dec 14, 2011
@jpellerin
Copy link
Member Author

I am assuming this will be taken care of by:

http://code.google.com/p/python-nose/issues/detail?id=264

Google Code Info:
Author: [email protected]
Created On: 2010-11-02T20:16:55.000Z

@jpellerin
Copy link
Member Author

Just wanted to say that this is still a problem in 1.0.0

Google Code Info:
Author: [email protected]
Created On: 2010-12-30T20:21:31.000Z

@jpellerin
Copy link
Member Author

Google Code Info:
Author: kumar.mcmillan
Created On: 2011-04-20T20:09:59.000Z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant