Buildkite Test Analytics collector
Project description
Buildkite Test Collector for Python (Beta)
The official Python adapter for Buildkite Test Analytics which collects information about your tests.
⚒ Supported test frameworks: pytest.
📦 Supported CI systems: Buildkite, GitHub Actions, CircleCI, and others via the BUILDKITE_ANALYTICS_*
environment variables.
👉 Installing
-
Create a test suite, and copy the API token that it gives you.
-
Add
buildkite-test-collector
to your list of dev dependencies insetup.py
extras_require={
"dev": [
"buildkite-test-collector"
]
}
- Set up your API token
Add the BUIDLKITE_ANALYTICS_TOKEN
environment variable to your build system's environment.
- Run your tests
Run your tests like normal. Note that we attempt to detect the presence of several common CI environments, however if this fails you can set the CI
environment variable to any value and it will work.
$ pytest
- Verify that it works
If all is well, you should see the test run in the test analytics section of the Buildkite dashboard.
🔜 Roadmap
See the GitHub 'enhancement' issues for planned features. Pull requests are always welcome, and we’ll give you feedback and guidance if you choose to contribute 💚
⚒ Developing
After cloning the repository, install the dependencies:
pip install -e '.[dev]'
And run the tests:
pytest
Useful resources for developing collectors include the Buildkite Test Analytics docs and the RSpec and Minitest collectors.
👩💻 Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/buildkite/test-collector-python
🚀 Releasing
- Version bump the code, tag and push.
- Publish to the Python Package Index:
python3 -m build
python3 -m twine upload dist/*
- Create a new github release.
📜 License
The package is available as open source under the terms of the MIT License.
🤙 Thanks
Thanks to the folks at Alembic for building and maintaining this package.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for buildkite-test-collector-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8de2978f272221ea2572b52f8eab6bf3b6ad8907ead33a5f8f511a0e2bbf3bc9 |
|
MD5 | dd9a5c6f718ba94fb8b412c20b92d54c |
|
BLAKE2b-256 | bf4f07e8597afd308bca5823dc17f2626d48f88f58e0e7453de143c203f8328a |
Hashes for buildkite_test_collector-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a1579e0479ef62f68fdb46cd8d71eed0d2ccd15f56e21c40edc62cfd4bfaa00 |
|
MD5 | 5e87cefc4aa65ea6bd3af7035e1740dc |
|
BLAKE2b-256 | 5dd2633431496655f5e4663fce4d2cf409fa2262a1b1d05c6472f708a7d9bc0a |