Thu Jul 6 17:10:49 2006

Ticket #73 (Closed: fixed)

nose.collector not finding all tests in `setup.py test`


Priority: highest Reporter: support-forums5@farmdev.com
Severity: critical Assigned to: jpellerin
Component: nose Status: closed
Version: 0.9 Resolution: fixed
Milestone: 0.9.1 Keywords:  

Description by support-forums5@farmdev.com:

using nose-0.9.0-py2.4.egg ... I'm getting some strange behavior trying to run `python setup.py test` It only finds my doctests. However, if I run `nosetests -v --with-doctest --doctest-tests` all tests are found. In setup.py I am setting the env vars which would be the equivalent of the above command line options, i.e.

os.environ['NOSE_WITH_DOCTEST'] = '1'
os.environ['NOSE_DOCTEST_TESTS'] = '1'

I will dig around the code a little more to see if I can figure out where it's going wrong, but wanted to submit this ticket in the meantime since you might know where to look in nose.collector

here is how to reproduce :

svn co --revision 197 http://svn.testtools.python-hosting.com/trunk testtools
cd testtools
python setup.py test

and this is what I was expecting :

nosetests -v --with-doctest --doctest-tests

am I missing anything?

Changelog

Wed Jul 12 09:44:58 2006: Modified by jpellerin

  • severity changed from normal to critical
  • priority changed from normal to highest
  • status changed from new to assigned

The collector is seeing the 'test' part of 'python setup.py test' as a test name to find and execute.

Wed Jul 12 09:45:13 2006: Modified by jpellerin

  • milestone set to 0.9.1

Wed Jul 12 09:54:17 2006: Modified by jpellerin

  • resolution set to fixed
  • status changed from assigned to closed

Fixed on trunk in [75].