nosetests --failed

Hello,

When running unit tests using Nose, I'd like to use command line options like --failed or --with-id. The helper script noserunner.py seems not to forward the parameters correctly to nosetests when I enter them in the Params input field.

I can circumvent the problem by running nosetests --failed as a regular Python process, but then I lose the test GUI. Is there a better way, or is this a bug in PyCharm?

Regards,
Dag
2 comments
Comment actions Permalink
We do not support the --failed option directly, but our test runners have the Rerun Failed Tests action that has is almost the same effect as --failed. It's available via an icon on the left side of the test runner pane.

You can run a single test via the context menu for a test function.
0
Comment actions Permalink
A bit of clarification: Rerun Failed Tests is a new feature of PyCharm 2.7; it's not available in the current release.
0

Please sign in to leave a comment.