--looponfailing gone?

Create issue
Issue #86 resolved
Dusty Phillips created an issue

{{{ $ py.test --version This is py.test version 1.2.1, imported from /usr/lib/python3.1/site-packages/py-1.2.1-py3.1.egg/py }}}

Using py.test 1.2.1 with Python3.1 under Arch Linux, the looponfailing option seems to be simply gone: {{{ $ py.test --help | grep loop $ }}}

{{{ $ py.test --looponfailing Usage: py.test [options] [file_or_dir] [file_or_dir] [...]

py.test: error: no such option: --looponfailing }}} It doesn't appear as though this option has been intentionally removed (if it has, then the documentation here needs to be updated: http://codespeak.net/py/dist/test/features.html#advanced-test-selection-and-running-modes ), so I'm assuming it is a bug. And since it hasn't been reported, it must be unique to my configuration. I don't have any third-party plugins installed that may be disabling this option, and I don't get any errors, so I'm quite mystified as to why it isn't working.

Comments (6)

  1. memedough


    The --looponfail option was moved into the xdist plugin. As such you need to install that plugin to use loop on failing.

    pip install pytest-xdist


  2. Dusty Phillips reporter

    Then I suggest the documentation in the 'advanced test selection and running modes' be updated to mention this; the xdist plugin is only mentioned in the context of distributed testing, but in the test selection section, it sounds like it is still built-in.

  3. Log in to comment