Skip to main content

Testinel’s pytest plugin captures structured test execution data directly from pytest and sends it to Testinel, where your test results become searchable, comparable, and actually useful.

Project description

Official Testinel plugin for pytest

Testinel’s pytest plugin captures structured test execution data directly from pytest and sends it to Testinel, where your test results become searchable, comparable, and actually useful. No log scraping. No brittle CI hacks. Just deterministic test analytics.

📦 Getting Started

Prerequisites

You need a Testinel account and project.

Installation

Getting Testinel into your project is straightforward. Just run this command in your terminal:

pip install --upgrade pytest-testinel

Configuration

Set Testinel reporter DSN environment variable TESTINEL_DSN.

Examples:

# Report to Testinel (HTTPS)
export TESTINEL_DSN="https://your.testinel.endpoint/ingest"
# Report to a local file (JSON)
export TESTINEL_DSN="file:///tmp/testinel-results.json"
# Or use a direct file path
export TESTINEL_DSN="./testinel-results.json"

Set Testinel plugin log level with --testinel-log-level.

Supported values:

  • DEBUG
  • INFO
  • WARNING (default)
  • ERROR
  • CRITICAL

Example:

pytest --testinel-log-level=INFO

Recommended pytest flags

For better debugging and richer failure context, it is highly recommended to run pytest with:

--showlocals --tb=long -vv

Why:

  • --showlocals: includes local variable values in tracebacks, which makes root-cause analysis much faster.
  • --tb=long: shows full, non-truncated tracebacks so you can see complete failure paths.
  • -vv: increases verbosity, showing more detailed test identifiers and execution output.

Example:

pytest --showlocals --tb=long -vv

Recommended Playwright flags

If you run browser tests with pytest-playwright, these flags provide better artifacts for debugging:

--tracing=retain-on-failure --video=retain-on-failure --screenshot=only-on-failure --output=test-results

Why:

  • --tracing=retain-on-failure: captures a full Playwright trace for failed tests only.
  • --video=retain-on-failure: keeps video recordings only for failed tests.
  • --screenshot=only-on-failure: saves screenshots at failure time.
  • --output=test-results: stores artifacts in a predictable directory.

Example:

pytest --tracing=retain-on-failure --video=retain-on-failure --screenshot=only-on-failure --output=test-results

Project details


Download files

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

Source Distribution

pytest_testinel-0.8.3.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_testinel-0.8.3-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file pytest_testinel-0.8.3.tar.gz.

File metadata

  • Download URL: pytest_testinel-0.8.3.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pytest_testinel-0.8.3.tar.gz
Algorithm Hash digest
SHA256 6bd673a79ef4c1a0e5a08bcacfaba4bae7d5e9591672031979e292c1740157fd
MD5 42d8dfff4a565cb029c1f4a73d7d0379
BLAKE2b-256 20e70843e7f16c7d1777d4fe375e615520de4e4e1c55deeaacfa265e6e826f9c

See more details on using hashes here.

File details

Details for the file pytest_testinel-0.8.3-py3-none-any.whl.

File metadata

  • Download URL: pytest_testinel-0.8.3-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pytest_testinel-0.8.3-py3-none-any.whl
Algorithm Hash digest
SHA256 884ed4e21f0cc606235e1ff86a02d27bea93f4048964f55cd5f17167ec1a392d
MD5 2594afcfeb568af5e6677ebf1282b26f
BLAKE2b-256 2098fa63ace6543a2d626259f0c3c19f66703e6462f9de72c4cda6bed929e795

See more details on using hashes here.

Supported by

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