Skip to content

feat: Adding support for pytest-xdist and pytest-parallel#1365

Merged
m-strzelczyk merged 1 commit intomasterfrom
issue-1364
Mar 4, 2022
Merged

feat: Adding support for pytest-xdist and pytest-parallel#1365
m-strzelczyk merged 1 commit intomasterfrom
issue-1364

Conversation

@m-strzelczyk
Copy link
Copy Markdown
Contributor

Closing #1364

Auto-add parameters for pytest when we detect that pytest-xdist or pytest-parallel are installed through the requirements.txt or requirements-test.txt files.

Setting the options to auto, as we can't assume what's the best number would be for the various environments the tests will run on.

@m-strzelczyk m-strzelczyk changed the title Adding support for pytest-xdist and pytest-parallel feat: Adding support for pytest-xdist and pytest-parallel Mar 3, 2022
Closing #1364

Auto-add parameters for `pytest` when we detect that `pytest-xdist` or `pytest-parallel` are installed through the `requirements.txt` or `requirements-test.txt` files.

Setting the options to auto, as we can't assume what's the best number would be for the various environments the tests will run on.
@m-strzelczyk m-strzelczyk marked this pull request as ready for review March 3, 2022 16:31
@m-strzelczyk m-strzelczyk requested review from a team and parthea March 3, 2022 16:31
Copy link
Copy Markdown
Contributor

@busunkim96 busunkim96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @m-strzelczyk, this is an elegant way to speed up the samples test suite. Could you make the same change in https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/noxfile-template.py?

CC @googleapis/python-samples-reviewers.

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