Simplifies using azure devops azure devops parallel strategy with pytest.
Instead of using a powershell as in ParallelTestingSample-Python to do the test selection we we can tell pytest to directly take care of selecting the right subset.
This pytest plugin was generated with Cookiecutter along with @hackebrot’s cookiecutter-pytest-plugin template.
Installation
You can install “pytest-azure-devops” via pip from PyPI:
$ pip install pytest-azure-devops
Usage
Just pip install pytest-azure-devops before running pytest on azure devops and make sure you use
jobs:
- job: tests_parallel_ci
strategy:
parallel: 2
steps:
- script: python -m pip install --upgrade pytest-azure-devops
displayName: 'Install dependencies'
- script: python -m pytest mytests
displayName: 'Run pytest'
Release files for pytest-azure-devops 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytest_azure_devops-0.3.0.tar.gz | 9.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_azure_devops-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.9 kB
Release files / pytest_azure_devops-0.3.0.tar.gz
| Download URL | pytest_azure_devops-0.3.0.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
901a57f01e87ef9312d8899a6e2770eeacadd46d6ff1a2caff30b48763e5a456
|
|
BLAKE2b-256 checksum How to use checksums |
375dcdaf52a2a9e2b73ce8ac0b06aaad04add4b9802d9be17bb34c9b0de2856e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.14
|
Release files / pytest_azure_devops-0.3.0-py3-none-any.whl
| Download URL | pytest_azure_devops-0.3.0-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
defe1f2afb54926ec4b40c9e7e9ccfcd45824702623e884eb11c3573ba2ed64e
|
|
BLAKE2b-256 checksum How to use checksums |
552f65372a700d53dd77c8bd52ca859c7ed3c79caa3f2dc3b60ffc93e6baf463
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.14
|