New hook: pytest_runtest_logfinish #3101
Labels
type: feature-branch
new feature or API change, should be merged into features branch
type: proposal
proposal for a new feature, often to gather opinions or design the API around the new feature
While looking for a solution to #3088, I realize we need a new hook that signals a test item has finished executing.
Without this hook one needs to implement
pytest_runtest_logreport
and juggle around the varioussetup
,call
andteardown
reports to infer when a test item has finished running, which is downright problematic as pytest-dev/pytest-xdist#218 shows: there I had to implement a new "event" to signal that a test has been complete, which besides fixing a bug also allowspytest-rerunfailures
to work withxdist
.The text was updated successfully, but these errors were encountered: