Skip to content

New hook: pytest_runtest_logfinish #3101

@nicoddemus

Description

@nicoddemus

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 various setup, call and teardown 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 allows pytest-rerunfailures to work with xdist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: feature-branchnew feature or API change, should be merged into features branchtype: proposalproposal for a new feature, often to gather opinions or design the API around the new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions