Perform action during runtime if test passes or fails #9918
Unanswered
f00dog-x300
asked this question in
Q&A
Replies: 0 comments
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,
My question is to see if there's a way to perform an action after each test function is run and depending whether it passes or fails will perform a different action.
The closest I have ever gotten is looking at the
pytest_runtest_teardown
plugin, but I do not see a clear way where I can pull the test case pass/fail status or examples of it. I was wondering if anyone has any idea on how to do it?Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions