nose-devs / nose

nose is nicer testing for python
http://readthedocs.org/docs/nose/en/latest/
1.36k stars 395 forks source link

nosetests silently ignores bad -c options #340

Open jpellerin opened 12 years ago

jpellerin commented 12 years ago

What steps will reproduce the problem?

  1. echo 'def test_badopt(): pass' > test_bad_nosetests_option.py
  2. nosetests -c BADPATH test_bad_nosetests_option.py
  3. echo $?

What is the expected output? What do you see instead? I expect nosetests to output an error message and return nonzero exit status. Instead nosetests executes the test and returns zero exit status.

What version of the product are you using? On what operating system? Tested with nosetests version 0.11.1 on both Ubuntu Linux 8.04 and Mac OS X 10.5.7

Please provide any additional information below. I expect this behavior for all file options.

Google Code Info: Issue #: 281 Author: brandon....@gmail.com Created On: 2009-07-27T22:04:49.000Z Closed On:

jpellerin commented 12 years ago

I'm not sure I agree that this should be a fatal error. A warning I can see, but I would need to be convinced (on the dev list, not here) to do anything more than that.

Google Code Info: Author: jpelle...@gmail.com Created On: 2009-07-27T22:16:22.000Z