-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust toxfile.py and --maxprocesses for coverage
Primarily, add a new plugin configuration option which customizes the test environment with a sitecustomize.py to launch coverage automatically. Additionally, customize `set_env` via this invocation path. In aggregate, this is a tox-plugin version of the type of behavior used by `pytest-cov`. Because the `coverage.process_startup()` call adds some overhead, highly parallel runs of the tests could start to fail under pytest-timeout. `tox p` parallelization on top of `pytest-xdist` parallelization became too aggressive, resulting in slow starts when timing was bad. Scaling maxprocesses back down to 4 (no appreciable difference in speed between 4 and 8) results in fast, successful runs.
- Loading branch information
Showing
3 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters