Skip to main content

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.2.0

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.2.0
File Size Uploaded Provenance Actions
pytest-buildkite-0.2.0.tar.gz 6.1 kB Without provenance Details for pytest-buildkite-0.2.0.tar.gz

Built distributions (wheels)

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

Total release size: 17.3 kB

Release files / pytest-buildkite-0.2.0.tar.gz

Download URL pytest-buildkite-0.2.0.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8f9c2d00590310051eba2d21f47850d939a531e9522f5e534f271f15e706a2ca
BLAKE2b-256 checksum
How to use checksums
582ada24a4a5dc96c723e78c6ea81bce57e79c775835f4c684162ca5ebe005d4
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.2.0-py3-none-any.whl

Download URL pytest_buildkite-0.2.0-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b28786dd3d16bf82a067cfe69312e6f9e0ffd866688867fdaa98fbbff105d4b6
BLAKE2b-256 checksum
How to use checksums
4181863736d140df9a6b96b66c01124a7c5d99b09fe91e5978d0c3dbb9a73447
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.2.0-py2-none-any.whl

Download URL pytest_buildkite-0.2.0-py2-none-any.whl
Size 5.6 kB
Tags Python 2
SHA-256 checksum
How to use checksums
005ea19f9a8c405beb9898f183e586683a07e50d0f9ade0c287e9489405dca57
BLAKE2b-256 checksum
How to use checksums
f91d8259f335ed3261aba3d262ab823fc283da609ad74403e1a1126feaec0ed1
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.2.0

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