nose-devs/nose — Issue #29: -w/--where does not preserve test selection by path
Author: jpellerin
Created: 2011-12-14 15:56:02+00:00
State: open

What steps will reproduce the problem?
1. create a suite with a subdirectory like "tests" and a file like
tests/test_foobar.py
2. run $ nosetests --where=tests ./tests/test_foobar.py

What is the expected output? What do you see instead?

one would expect to have the test selected based on the file path but this
does not work since --where tells nose to chdir into the tests directory.

Workarounds :

This will work:
$ nosetests --where=tests test_foobar.py

The problem with that is you lose your shell's autocomplete ability :(

$ nosetests --where=tests tests.test_foobar

If you have __init__ files that will work too. But again, no autocomplete.

Solving this might make working around issue116 easier (the non-import safe
problem)

Google Code Info:
Issue #: 189
Author: kumar.mcmillan
Created On: 2008-05-23T01:05:07.000Z
Closed On: