Is it possible to set global/module wide xfail behavior. #11474
Unanswered
HenrikSpiegel
asked this question in
Q&A
Replies: 1 comment
-
import pytest
pytestmark = [pytest.mark.xfail(strict=False)]
def test_yay():
walk.will.fail |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When working in a test-first approach it would be great to be able to mark all tests in a given document.
ie. catch all test which raises NotImplementedError and mark them for xfail.
Currently I am doing this for every test and it would be great to be able to set a default behavior.
Is there a better way than to mark each test?
Beta Was this translation helpful? Give feedback.
All reactions