使用pytest-split在CI瓶颈堆积之前按历史时间分割慢速pytest套件
Lets an agent split a large pytest suite into timing-balanced shards so parallel CI lanes finish faster and with less variance.
Prerequisites
Python, pytest, pytest-split
Installation
Use the upstream install or setup path that matches your environment:
- pip install pytest-split
Requirements and caveats from upstream:
-
-
-
Basic usage or getting-started notes:
- For example, some test suites may be fragile considering the order in which the tests are executed.
- sh
- First we have to store test durations from a complete test suite run.
- Source: https://github.com/1991513ccie-png/skills
- Extracted from upstream docs: https://raw.githubusercontent.com/jerry-git/pytest-split/HEAD/README.md
Documentation
- https://github.com/1991513ccie-png/skills