pytest-tinybird
A pytest plugin to report test results to tinybird
What it is and what it does
pytest-tinybird is a pytest plugin that integrates test execution with Tinybird, a data analytics platform. After each test run, it sends structured test results—including test name, outcome, duration, and CI metadata—to Tinybird via the Events API. The plugin automatically creates a data source on first use and populates it with report objects containing commit, branch, job ID, and test execution details.
The plugin is designed for CI/CD pipelines and supports environment variables from GitLab, GitHub Actions, and other CI systems. It requires a Tinybird account and a token with append permissions, and configuration is done entirely through environment variables and a pytest command-line flag. The plugin depends on pytest and requests, making it lightweight to install.
Use it for:
- Track test execution metrics and trends over time in a Tinybird data warehouse for analytics and reporting.
- Correlate test outcomes with git commits and branches to identify which changes introduce test failures.
- Monitor CI job performance and test duration trends across different branches and workflows.
- Build dashboards and alerts on top of test data to surface flaky tests or performance regressions.
- Aggregate test results from multiple CI systems and repositories into a centralized Tinybird data source.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A pytest plugin that automatically posts test results to Tinybird's Events API at the end of each test run, capturing test outcomes, durations, and CI metadata.
Yes, if you use Tinybird and want to stream test results into it for analytics. The plugin is straightforward to set up and has low install friction. However, maintenance is aging (last release 464 days ago), so verify compatibility with your current pytest version before adopting. No known security vulnerabilities.
Install
pytest-tinybird on PyPI
pip
pip install pytest-tinybirduv
uv add pytest-tinybirdpoetry
poetry add pytest-tinybirdInstalling pytest-tinybird
Before you install
Low install friction with a pure-Python wheel. Maintenance is aging—last release was 464 days ago, though the repository remains active with a recent commit in June 2025. Depends on pytest and requests, both stable and widely available.
License in practice
MIT license is permissive, allowing use in commercial and private projects with minimal restrictions.
Quickstart
pip install pytest-tinybird
export TINYBIRD_URL=https://api.tinybird.co
export TINYBIRD_DATASOURCE=my_datasource
export TINYBIRD_TOKEN=<token_with_append_permissions>
pytest tests --report-to-tinybird
Requires a Tinybird account, a token with append permissions, and environment variables (TINYBIRD_URL, TINYBIRD_DATASOURCE, TINYBIRD_TOKEN) to be set before running pytest.
Verify before relying
- Whether pytest 3.8 or newer requirement is still accurate given classifiers list Python 3.8–3.11 support
- Current compatibility with modern pytest versions beyond what the description states
- Whether the plugin works with pytest-xdist or other parallel test runners
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — pytest, requests |
| Maintenance | aging — 464 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 111,712/month — #12,404 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pytest_tinybird-0.5.0-py3-none-any.whl
Tags
More Testing packages
Pluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
virtualenvvirtualenv creates isolated Python environments…
permissive · top 100 on PyPI
coverageCoverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
pytest-asynciopytest-asyncio is a pytest plugin that enables…
permissive · top 1,000 on PyPI
pytest-json-ctrfA pytest plugin that generates test reports in…
permissive · top 1,000 on PyPI
pytest-excelA pytest plugin that generates Excel reports…
permissive · top 15,000 on PyPI
tinybird-python-sdkIngest NDJSON data into Tinybird Data Sources…
unclear · top 15,000 on PyPI
pytest-reportlogWrites pytest test results to a JSON Lines file…
permissive · top 15,000 on PyPI
pytest-json-reportA pytest plugin that generates JSON-formatted…
permissive · top 5,000 on PyPI
tinybirdCommand-line interface for managing Tinybird…
unclear · top 15,000 on PyPI
pytest-playwright-visualA pytest plugin that captures and compares…
permissive · top 15,000 on PyPI
pytest-durationsA pytest plugin that measures and reports…
permissive · top 5,000 on PyPI
pytest-replayA pytest plugin that records test execution…
permissive · top 15,000 on PyPI
pytest-md-reportA pytest plugin that generates test outcome…
permissive · top 15,000 on PyPI
pytest-item-dictA pytest plugin that builds hierarchical…
unclear · top 15,000 on PyPI