nose
nose copied to clipboard
Nosetests cannot find tests inside eggs
This may have been reported before: #567, #250, #41 However, these bug reports are very old and the problem still exists, even though it is mentioned in some that it is solved.
Steps to reproduce the problem:
- Either install nosetests 1.3.7 or the latest version from github (7c26ad1e6b7d308cafa328ad34736d34028c122a at the time of writing).
- Clone the following simple project: https://github.com/theochem/derivcheck
- Comment out the
zip_safe=False
line fromsetup.py
, as to let it install as an.egg
file. - Run
python setup.py install --user
(or install in a virtualenv). - Change to your home dir:
cd
, i.e. move away from the source tree. -
nosetests derivcheck
.
I get this output:
----------------------------------------------------------------------
Ran 0 tests in 0.082s
OK
I was expecting this output, obtained with zip_safe=False
:
..............................
----------------------------------------------------------------------
Ran 30 tests in 0.669s
OK