Learn more about these different git repos.
Other Git URLs
Coverage thinks we are missing two lines in fegistry/init.py:
[vagrant@fegistry fegistry]$ python3 setup.py nosetests running nosetests running egg_info writing fegistry.egg-info/PKG-INFO writing requirements to fegistry.egg-info/requires.txt writing top-level names to fegistry.egg-info/top_level.txt writing dependency_links to fegistry.egg-info/dependency_links.txt reading manifest file 'fegistry.egg-info/SOURCES.txt' writing manifest file 'fegistry.egg-info/SOURCES.txt' ... Name Stmts Miss Cover Missing ------------------------------------------------- fegistry.py 2 2 0% 16-21 fegistry/views.py 7 0 100% ------------------------------------------------- TOTAL 9 2 78% nose.plugins.cover: ERROR: TOTAL Coverage did not reach minimum required: 100%
This is due to setup.py importing fegistry. It does this to determine the version. However, since setup.py does this before nose starts, the processing of __init__.py happens before coverage is observing it, and so coverage thinks that code was never executed.
setup.py
__init__.py
Running the tests directly with nosetests-3 does work, but we should try to continue to support python3 setup.py nosetests.
nosetests-3
python3 setup.py nosetests
This was fixed by https://pagure.io/fegistry/pull-request/12
@bowlofeggs changed the status to Closed
Closed
Login to comment on this ticket.