Giter Club home page Giter Club logo

Comments (6)

davehunt avatar davehunt commented on July 28, 2024

You should be able to disable the plugin using pytest's -p no:rerunfailures command line option.

from pytest-rerunfailures.

rouge8 avatar rouge8 commented on July 28, 2024

Hmm. That breaks if you also use --strict (e.g. through pytest.ini), but that's good enough for me. Thanks!

from pytest-rerunfailures.

sallner avatar sallner commented on July 28, 2024

I also encountered a similar problem with other plugins. If there is a flag like --rerun 3 in a pytest.ini or in a tox.ini then I found no way to switch off the plugin. -p no:rerunfailures will cause the following error py.test: error: unrecognized arguments: --rerun. Has there been a solution for other plugins to cope with that?

from pytest-rerunfailures.

The-Compiler avatar The-Compiler commented on July 28, 2024

I've had the same issue before as well... Is there something we could add for this scenario from the pytest side?

I guess there could be a -p ignore:rerunfailures or so which runs pytest_addoption (to add the commandline switches) but no other hooks. Then again depending what kind of stuff plugins do there (or at import time) this might lead to weird effects... So maybe this is better solved individually per-plugin indeed.

from pytest-rerunfailures.

astraw38 avatar astraw38 commented on July 28, 2024

IMO, it's a non-issue that disabling a plugin also disables it's command line options. That'd be expected, and changing it would just make it more confusing. Instead, don't use plugin options in your ini files if you're also going to need to disable them at a later date.

from pytest-rerunfailures.

florianpilz avatar florianpilz commented on July 28, 2024

I agree that -p no:rerunfailures should be sufficient. Disabling reruns should not occur on a daily basis, rather to check if a global bugfix squished most of the brittle test failures. Removing the rerun option from a single INI file to avoid unrecognized arguments sounds good to me.

from pytest-rerunfailures.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.