This release is a pre-release and may not be stable for production use.
pytest-buildkite
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
In order to access the Buildkite agent the docker will need access to the buildkite-agent binary (either by extending from the official Buildkite docker image or by installing it in the docker or mounting from the host). Also make sure that the docker image CA certificates are installed so that it can publish annotations back to Buildkite via HTTPS. Additionally make sure you pass down the numerous Buildkite Environment Variables. If you do mount the agent to provide access you may find you need to mount a few additional programs called from the agent e.g.:
volumes:
- type: bind
source: /usr/bin/buildkite-agent
target: /usr/bin/buildkite-agent
- type: bind
source: /usr/bin/buildkite-agent-original
target: /usr/bin/buildkite-agent-original
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.5.dev0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytest-buildkite-0.1.5.dev0.tar.gz | 6.0 kB | Without provenance | Details for pytest-buildkite-0.1.5.dev0.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_buildkite-0.1.5.dev0-py3-none-any.whl | Python 3 | none | any | Details for pytest_buildkite-0.1.5.dev0-py3-none-any.whl |
| pytest_buildkite-0.1.5.dev0-py2-none-any.whl | Python 2 | none | any | Details for pytest_buildkite-0.1.5.dev0-py2-none-any.whl |
Total release size: 17.2 kB
Release files / pytest-buildkite-0.1.5.dev0.tar.gz
| Download URL | pytest-buildkite-0.1.5.dev0.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
11708f7fd1bb434b3e19b68d8eb820757913dcc996dcc6c1828d6f718da04472
|
|
BLAKE2b-256 checksum How to use checksums |
bdf6f3f532fc7caa8885d6800d952b8f1c315718e6f0eb5d99c002d792d85906
|
| 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.5.dev0-py3-none-any.whl
| Download URL | pytest_buildkite-0.1.5.dev0-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aa5768245342fc996510529f6cbd48a1591a07f354eaca2cf87ecc7df38bd920
|
|
BLAKE2b-256 checksum How to use checksums |
db4e6a8c76b43e54c79e584beabfb68d89fffa004de37bb8838b35e6ae51a50b
|
| 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.5.dev0-py2-none-any.whl
| Download URL | pytest_buildkite-0.1.5.dev0-py2-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
5aeeca35f6a0a743b0ea122bbd2ea080e3e7511fae03c02de1b4ac5181b65f7f
|
|
BLAKE2b-256 checksum How to use checksums |
01a5853c7051bf8a2f35db66f35a735e005ef254fd3a8099a67fe2f71dcf4d13
|
| 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.5.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.