https://github.com/50-course/pytest-distributed
A pytest plugin that cuts down test execution time (of CI pipelines) for organizations to move faster. Ship faster & better, with this alternative plugin to pytest-xdist :eyes:
https://github.com/50-course/pytest-distributed
developer-tools django
Last synced: 4 months ago
JSON representation
A pytest plugin that cuts down test execution time (of CI pipelines) for organizations to move faster. Ship faster & better, with this alternative plugin to pytest-xdist :eyes:
- Host: GitHub
- URL: https://github.com/50-course/pytest-distributed
- Owner: 50-Course
- License: mit
- Created: 2024-01-26T09:01:33.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-29T01:21:46.000Z (about 2 years ago)
- Last Synced: 2025-01-27T09:41:26.339Z (about 1 year ago)
- Topics: developer-tools, django
- Language: Dockerfile
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# pytest-distributed
[](https://github.com/pre-commit/pre-commit)
[](https://github.com/psf/black)
### Description
> Given when people touch on large codebases, and run pytest they burn a significant period of time in the order of hours on test suites.
> `pytest-distributed` greatly simplify that process, in hence, we are creating an complementary plugin to `pytest-xdist`, with true parralelism at play
So let's begin!
### Ideas Bank
* True Parallelism: first thing that comes to mind here, is use of parallel algorithms.
- What if we can go beyond Parallel Task Queue implementation? Say, MapReduce - Divide test suites into micro-units (map) and aggregate results (reduce)
* Dynamic Test Distribution: distribute tests across available CPU cores to optimize performance
Possible Strats for True Parallelism:
Test Distribution by Module?
Test Distribution by Dependency Graph - I would have to research on this...
Dynamic Work Stealing: a work-stealing algorithm where idle workers steal work from busy workers, ensuring optimal CPU core utilization.
* Customization Options: Give users access to customize settings based on their specific requirements but not too much power.
### Success Criteria
The project is considered success if:
- It could perform successful parallel test execution in the slightest way possible