Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interaction with pytest fixtures #61

Open
f0uriest opened this issue Sep 23, 2022 · 1 comment
Open

Interaction with pytest fixtures #61

f0uriest opened this issue Sep 23, 2022 · 1 comment

Comments

@f0uriest
Copy link

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?

@jerry-git
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants