nose-devs/nose — Issue #394: Test module output not in same format as required to re-run test
Author: jpellerin
Created: 2011-12-14 16:09:48+00:00
State: open

What steps will reproduce the problem?
1. Run a test which fails
2. Observe the module path after the "FAIL:" message, which resembles "(myapp.submodule.MyClassName)"

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

Nose should output tests' module paths in such a way as they can be pasted verbatim after the nose command to rerun the failed test. Nose requires a colon before the class name, not a period. If I were to paste the path to the module as-is, it might run no tests at all, or complain that the last portion of the path is not a module.

So:

FAIL: test_my_method (myapp.submodule.tests.TestMyClass)

Would be much more useful if output as:

FAIL: test_my_method (myapp.submodule.tests:TestMyClass)

Or better yet:

FAIL: myapp.submodule.tests:TestMyClass.test_my_method

That way, the entire string could be cut and pasted with no modification to rerun the test method.

What version of the product are you using? On what operating system?
0.11.4

Google Code Info:
Issue #: 375
Author: alisonro...@gmail.com
Created On: 2010-11-22T22:40:03.000Z
Closed On: