skillfed

pytest-tinybird

A pytest plugin to report test results to tinybird

pytest-tinybird v0.5.0 111.7K downloads/30d#12,404 on PyPI10
Permissive license MIT AGING released

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-tinybird

uv

uv add pytest-tinybird

poetry

poetry add pytest-tinybird

Installing 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

Development Status :: 4 - BetaFramework :: PytestProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

pytest plugin tinybird reportingtest results analytics tinybirdci test data collectionpytest event streamingtest metrics to tinybird
ci-cd-integrationtest-analyticsdata-pipeline

More Testing packages