Simplifies using azure devops parallel strategy (https://docs.microsoft.com/en-us/azure/devops/pipelines/test/parallel-testing-any-test-runner) with pytest.
Project description
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'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pytest-azure-devops-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e2ef959c72584cf4a88a568ef1a161707be50f4f34103371cddf2d925ec9998 |
|
MD5 | af41f3af05cef89cb88ad2c1f40422c5 |
|
BLAKE2b-256 | c47d3824f0ab9a07921bbfa61ac5df6f00929503cc1517e9cee451743c53a0d0 |
Hashes for pytest_azure_devops-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b5bd7aef87f80ea9a98c4894873e0d4be65f3fe56c63206a005ec7a1d85e098 |
|
MD5 | 7887a079859edd81adf418a406a691b4 |
|
BLAKE2b-256 | dd3cefdd5f7b0b61270259fb2d264b5a8303d30420ebe7e94185d9cd97619c05 |