Replies: 1 comment
-
I came across this: It does produce item.rep_setup.skipped so for now I will settle with this even tho i hate how it is hacked together. But other comments on pytest points towards things not getting implemented for now. |
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.
-
Hello,
I got a case where I want to check state of specific variables after testing is done. This i would like to do with a fixture.
But if the test is skipped, the fixture is still executed. How do I check for fixture not being skipped?
I found many dumb examples where you use the pytest_runtest_makereport where you actually can grab the outcome but it is just a hack imo. I want to find a more correct way to do this.
Example:
Expect test*_pass to pass, test*_fail to fail and test_skipped to skip and not run fixture
Beta Was this translation helpful? Give feedback.
All reactions