Skip to content

Reduce scoped fixture count #1107

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

seifertm
Copy link
Contributor

@seifertm seifertm commented May 2, 2025

This PR changes the logic for creating fixtures for scoped event loops. Scoped loop fixtures are created once for each scope rather than for each occurence of a scope (e.g. for each module).

This reduces the total number of fixtures and reduces test collection time as a result. The changes are most notable in large test suites.

@seifertm seifertm added this to the v1.0 milestone May 2, 2025
… per scope instance.

This reduces the number of fixtures and therefore improves test collection time, especially for large test suites.
@seifertm seifertm force-pushed the reduce-scoped-fixture-count branch from b2280dc to da113d7 Compare May 5, 2025 04:26
@seifertm seifertm marked this pull request as ready for review May 5, 2025 04:27
@seifertm seifertm requested review from asvetlov and Tinche as code owners May 5, 2025 04:27
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.23%. Comparing base (959c9f0) to head (da113d7).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1107      +/-   ##
==========================================
- Coverage   90.60%   90.23%   -0.37%     
==========================================
  Files           2        2              
  Lines         500      471      -29     
  Branches       64       60       -4     
==========================================
- Hits          453      425      -28     
  Misses         30       30              
+ Partials       17       16       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Successfully merging this pull request may close these issues.

2 participants