Skip to content

Interaction with pytest fixtures #61

Open

Description

@f0uriest

Several tests in in my code use fixtures, and from looking at the durations file generated by pytest-split it seems like the time for creating those fixtures gets assigned to the first test that calls for them. However, when the tests are split, it splits them in such a way that the fixture has to be created multiple times in different jobs. Is it possible to include the fixture creation time into account somehow, or to keep tests that share fixtures together where possible?

Activity

  1. jerry-git commented on Apr 12, 2023

    @jerry-git
    Owner

    That would indeed make the precision better but tbh I'm not sure how feasible it would be. At least it would add quite a bit of complexity to the whole thing.

    If there's someone who wants to give this a try, please do 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions