You can get the filename of the test and test name just by running nosetest
with -v
option. In addition, tests that fail will dump a full stack trace on error (which has line numbers). You can also use --pdb
and --pdb-failure
options to get into pdb debugger immediately after error or test failure.
Nose-progressive plugin has many bells and whistles in terms of formatting the output of the tests, including changing the template to satisfy any editor. Also, check out this nosemacs - emacs extension to provide easy nosetest integration. And if you just want line numbers, nose-machineout is your friend.