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

Built distributions (wheels)

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

Total release size: 17.0 kB

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

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

Download URL pytest_buildkite-0.1.6.dev0-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8ecf6c8fc31ba7a0506f7170607d56f4a8690108b3164a820c214177416ac4a6
BLAKE2b-256 checksum
How to use checksums
1ee170f933a6ca0c1b97e80fe9067d0890b2584da91ed6ac12251eefe0217d9d
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.6.dev0-py2-none-any.whl

Download URL pytest_buildkite-0.1.6.dev0-py2-none-any.whl
Size 5.5 kB
Tags Python 2
SHA-256 checksum
How to use checksums
bfaa5bac19800521cd03ace4bc563ec430fe19d4f0334f29979305e55c962e2e
BLAKE2b-256 checksum
How to use checksums
0b4214c3bc87c71e4b79f9fb7231e63fcbecae0e606ab0586d29344fef57d6a6
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.6.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