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

Single command to run groups and collect output #92

Closed
ddorian opened this issue Apr 17, 2024 · 2 comments
Closed

Single command to run groups and collect output #92

ddorian opened this issue Apr 17, 2024 · 2 comments

Comments

@ddorian
Copy link

ddorian commented Apr 17, 2024

I didn't find any. Is there a command that will basically run several groups and collect output and display it? Needed so I can run locally with 1 command to speedup tests.

@jerry-git
Copy link
Owner

If the motivation is to run the full test suite split into n sub suites running in parallel in local environment, I believe you could do something like pytest --splits 3 --group 1 & pytest --splits 3 --group 2 & pytest --splits 3 --group 3.

However, if this is about speeding up local runs, I'd recommend having a look at pytest-xdist.

@ddorian
Copy link
Author

ddorian commented Jun 21, 2024

True, but pytest-xdist doesn't work with gevent pytest-dev/pytest-xdist#1069

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