You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am running pytest using the api pytest.main. I want to collect the test result in the form of no. of succeeded, failed and error. I am able to find successful and failed tests but can’t figure out how to find no. of errors.
I want to add a hook like @pytest.hookimpl(hookwrapper=True) def pytest_runtest_makereport(item: Item, call: CallInfo):
How do I find if the result was error or test failure?
is this correct approach for creating a summary or is there a simpler api?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am running pytest using the api pytest.main. I want to collect the test result in the form of no. of succeeded, failed and error. I am able to find successful and failed tests but can’t figure out how to find no. of errors.
I want to add a hook like
@pytest.hookimpl(hookwrapper=True) def pytest_runtest_makereport(item: Item, call: CallInfo):
How do I find if the result was error or test failure?
is this correct approach for creating a summary or is there a simpler api?
Thanks in advance…
Beta Was this translation helpful? Give feedback.
All reactions