Skip to main content

A pytest plugin to report test results to tinybird

Project description

pytest-tinybird

A pytest plugin to report test results to tinybird

Passed Top test passed

Requirements

  • Python >=3.8
  • pytest 3.8 or newer (previous versions might be compatible)

Installation

  $ python setup.py install

Not via pip yet

Usage

You just need a tinybird account and token with append permissions

Set this env variables

  TINYBIRD_URL=<https://api.tinybird.co|https://api.us-east.tinybird.co>   # depends on your region
  TINYBIRD_DATASOURCE=<datasource_name>  # will be created with first results posted
  TINYBIRD_TOKEN=<token_with_append_permissions>

Just run pytest with --report-to-tinybird.

$ pytest tests --report-to-tinybird

CI execution info is filled using some env variables, the ones from GitLab.

CI_COMMIT_SHA
CI_JOB_ID
CI_JOB_NAME
CI_JOB_URL

In case you are not using GitLab you need to set it manually. For instance for GitHub actions you can check current GitHub actions workflow)

You can check the data source schema with this data sample of this repo CI executions.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pytest_tinybird-0.1.0-py3.10.egg (7.1 kB view details)

Uploaded Source

File details

Details for the file pytest_tinybird-0.1.0-py3.10.egg.

File metadata

  • Download URL: pytest_tinybird-0.1.0-py3.10.egg
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for pytest_tinybird-0.1.0-py3.10.egg
Algorithm Hash digest
SHA256 db105de492a8261c42383c12d16b8801799f13e96137a5e91539c2e47738f768
MD5 bbc973df87f78fc1cc0709816877d183
BLAKE2b-256 0c30c3732e3da3f33f2a664a7e700cc47bd254ec219828aea7c612a2c11f711c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page