Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Build status PyPI version Python versions PyPI download month

Note: This library was repurposed from tonybaloney’s pytest-azurepipelines, the repurposing process is not yet complete.

Plugin for pytest that automatically publishes coverage and pytest report annotations to BuildKite.

Just run pytest with this plugin and see your test results in the BuildKite UI!


Features:

  • Formats the PyTest output to show test docstrings and module names instead of just test case names in the Buildkite UI.

  • Overloads the –junit-xml flag on execution with a default value

  • Uploads test results automatically, no need for a seperate test results upload command

  • Displays the number of failed tests if there were failures as an error message in the UI

  • Automatically formats code coverage and uploads coverage data if pytest-cov is installed

Installation

You can install “pytest-buildkite” via pip from PyPI:

$ pip install pytest-buildkite

Running in Docker

The plugin attempts to automatically detect if running inside a docker container with path mounted in a different location, it will apply the mappings to the path to report them back to Azure Pipelines using the path from the host that has been bind mounted to the docker container. No configuration is required it should just work as long as bind mounting is used to the path the pytest output is written to. Also ensure the files are written using an account the host has access to, this can be done by supplying the user and group of the host account to the run command.

docker run --user "$(id -u):$(id -g)" ...

Contributing

Contributions are very welcome.

License

Distributed under the terms of the MIT license, “pytest-buildkite” is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.

Metadata

Release files for pytest-buildkite 0.1.8.dev0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-buildkite 0.1.8.dev0
File Size Uploaded Provenance Actions
pytest-buildkite-0.1.8.dev0.tar.gz 6.1 kB Without provenance Details for pytest-buildkite-0.1.8.dev0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pytest-buildkite 0.1.8.dev0
File Interpreter ABI Platform Actions
pytest_buildkite-0.1.8.dev0-py3-none-any.whl Python 3 none any Details for pytest_buildkite-0.1.8.dev0-py3-none-any.whl
pytest_buildkite-0.1.8.dev0-py2-none-any.whl Python 2 none any Details for pytest_buildkite-0.1.8.dev0-py2-none-any.whl

Total release size: 17.4 kB

Release files / pytest-buildkite-0.1.8.dev0.tar.gz

Download URL pytest-buildkite-0.1.8.dev0.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
85edc2e63f2969eee0dc28a534b900d1322a6f353857ab694e257bd7a202144a
BLAKE2b-256 checksum
How to use checksums
7841939e56fcf57c9396e5cc39203675345c3fbd0306f5e3da88c7b498bbd661
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

Release files / pytest_buildkite-0.1.8.dev0-py3-none-any.whl

Download URL pytest_buildkite-0.1.8.dev0-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4a0e95fdab75bb363e3ee3bcb1d44b170643a0000aea9196ec59a9c99bc57cf8
BLAKE2b-256 checksum
How to use checksums
0c1eef12aaacb59e6c97d5a59f22ac69d32c2c88d71c5f793793e3c24ff0a190
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

Release files / pytest_buildkite-0.1.8.dev0-py2-none-any.whl

Download URL pytest_buildkite-0.1.8.dev0-py2-none-any.whl
Size 5.7 kB
Tags Python 2
SHA-256 checksum
How to use checksums
1f7f78abcee709ccde530ed49cc599be1718f48c59150c4438974cb16a8df5b4
BLAKE2b-256 checksum
How to use checksums
c552451b06fa02aa0ed611db75cd57896aac16a28fb31a4b19c924a7c52b4759
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

Security for pytest-buildkite 0.1.8.dev0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page