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"

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

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.4.0.tar.gz (6.1 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.4.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytest_testinel-0.4.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.19

File hashes

Hashes for pytest_testinel-0.4.0.tar.gz
Algorithm Hash digest
SHA256 0dd2b127ee72baf1031606e2e0d8e65de7775e1de6c9e7f88fe920b4112a0268
MD5 d430ae45ab11df30558914d18b03a41f
BLAKE2b-256 0307bfc40969146abcaac80ac66b466ceb69d12f881a008c167b57abc58ef3e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytest_testinel-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a8f50dabc090d51204aab178a7d034b2beed01e6d9115f0c4c8ed8915b4c6aee
MD5 c9597b41ec10aee9328e76d643462e9e
BLAKE2b-256 523a42580ebf7ebc6c4da92015875f9046eec0dc96a02af0a833fcc2bb1ce5d4

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