Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to provide a rerun_filter to work with the force-flaky option #160

Open
mentaal opened this issue Sep 17, 2019 · 1 comment
Open

Comments

@mentaal
Copy link

mentaal commented Sep 17, 2019

In the case of when the user is using force-flaky, it would be useful to be able to provide a filter function as well that can be used globally.

I was able to do it with a bit of a hack for the moment:

def pytest_configure(config):
    flaky_inst = config.pluginmanager.getplugin("flaky").PLUGIN
    flaky_inst._make_test_flaky = partial(flaky_inst._make_test_flaky,
                                          rerun_filter=should_rerun)
@jithintomz
Copy link

jithintomz commented Feb 20, 2020

@mentaal
this solution is not working when I tried. Is this still working for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants