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

Parallelize tests using pytest-xdist #820

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

Conversation

sorasful
Copy link

Hi there!

I've noticed that the tests took a little while to run. So I've decided to see if we could parallelize them, I used pytest-xdist.

For very few tests (3), concurrency was a problem so I've decided to run them sequentially. I followed this issue to implement this :

pytest-dev/pytest-xdist#385

Now everything runs smoothly and quickly.

Copy link

codecov bot commented Jan 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (a43c359) to head (2bc8f76).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #820   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          138       138           
  Lines        11044     11054   +10     
  Branches      1565      1568    +3     
=========================================
+ Hits         11044     11054   +10     

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

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.

1 participant