pytest.fail() does not show reason in short summary #9895
Unanswered
RolfBippus
asked this question in
Q&A
Replies: 1 comment
-
This is what I get: import pytest
def test_foo():
pytest.fail("for some reason")
So it seems to be working, or I'm not understanding your request. Can you elaborate? |
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.
-
How can I achieve to show the reason when using pytest.fail(reason, ....).
When using pytest.fail() the reason only show up in the FAILURS section but not in the short summary as opposed to raising an exyeption.
Is this intended behaviour?
Does not really seem to make sense.
Beta Was this translation helpful? Give feedback.
All reactions