Hi, a new issue was opened for `pytest-rerunfailures`, since it does not work nicely with the `—exitfirst` flag (see https://github.com/pytest-dev/pytest-rerunfailures/issues/30 <https://github.com/pytest-dev/pytest-rerunfailures/issues/30>).
I have looked into the reports and tracked the state of `Session.testsfailed`,
but since an outcome “failure" is overwritten with the outcome “rerun” no
failures are recorded and `Session.testsfailed` remain 0 es expected. However,
the test suite still stops after the test finally passes after the required
amount of reruns.
So my question is, which other mechanisms does pytest have to determine whether
the test suite should be stopped? I’m pretty sure that exitfirst / maxfail = 1
is not the reason.
To give you more context, I’m running the following tests with `py.test —reruns
3 -x`:
def test_before():
pass
def test_flaky():
import py
path = py.path.local(__file__).dirpath().ensure('test.res')
count = path.read() or 1
if int(count) <= 3:
path.write(int(count) + 1)
raise Exception('Failure: {}'.format(count))
def test_after():
pass
–––––––––
Florian Pilz · [email protected] · Software Developer
gocept gmbh & co. kg · Forsterstraße 29 · 06112 Halle (Saale) · Germany
http://gocept.com <http://gocept.com/> · Tel +49 345 122 9889 7
Python, Pyramid, Plone, Zope · consulting, development, hosting, operations
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ pytest-dev mailing list [email protected] https://mail.python.org/mailman/listinfo/pytest-dev
