Skip to main content
Pre-release

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

pytest-buildkite

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.7.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.7.dev0
File Size Uploaded Provenance Actions
pytest-buildkite-0.1.7.dev0.tar.gz 5.9 kB Without provenance Details for pytest-buildkite-0.1.7.dev0.tar.gz

Built distributions (wheels)

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

Total release size: 17.0 kB

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

Download URL pytest-buildkite-0.1.7.dev0.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ca22f6db9cf3156262f4867c3c7321212d7ea778d4c9be57263a89432dcda9c7
BLAKE2b-256 checksum
How to use checksums
7e2c4408b7da380e5c80dfb22c09f43374a9b2393ae4c5686ff05d785e0bef2d
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.7.dev0-py3-none-any.whl

Download URL pytest_buildkite-0.1.7.dev0-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3cd0f7098f7a8b4893d7deeb08a18ddeaca9090f90a6f7ec1137055f881f39b9
BLAKE2b-256 checksum
How to use checksums
918f4ef7989b949472aefb1568cd6442016a9c4c5e4aec7647197f1e5511ce40
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.7.dev0-py2-none-any.whl

Download URL pytest_buildkite-0.1.7.dev0-py2-none-any.whl
Size 5.5 kB
Tags Python 2
SHA-256 checksum
How to use checksums
0152509c4c7bcc66ea652a40f84792258526fdae6d1bf770d78ca623b4b8333b
BLAKE2b-256 checksum
How to use checksums
0651f11b8029b566966e647e6d5bb93cff04bbff8348caf4b72549c390f2369d
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.7.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