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

Run tox tests in parallel #1247

Closed
wants to merge 1 commit into from
Closed

Run tox tests in parallel #1247

wants to merge 1 commit into from

Conversation

rmartin16
Copy link
Member

@rmartin16 rmartin16 commented Apr 29, 2023

Changes

  • The tox -e py command now runs pytest tests in parallel
  • Use tox -e py -- to run tests sequentially in process

Notes

  • This took way longer to get working than I'd like to say...
  • There are....some complications with getting coverage.py working with distributed tests
    • Not least of which is using an ostensibly bizarre pypi package that was uploaded 7 years ago..
    • I tried to get pytest-cov to work....but I couldn't stop some innocuous errors....and it seems possible from Ned's documentation he doesn't have much love for it.
    • At any rate, one of those two packages (or some black magic) is necessary to get Python loaded correctly for coverage.py to work

I was about to abandon this effort but I did finally get it working. That said, I'm not sure this is the form it should necessarily take. A competing PR will be created shortly.

PR Checklist:

  • All new features have been tested
  • All new features have been documented
  • I have read the CONTRIBUTING.md file
  • I will abide by the code of conduct

@rmartin16 rmartin16 force-pushed the xdist branch 4 times, most recently from 7ece328 to 3da32ed Compare April 29, 2023 17:51
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