nosetests --failed


When running unit tests using Nose, I'd like to use command line options like --failed or --with-id. The helper script 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?

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.
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.

Please sign in to leave a comment.