Skip to main content

Pytest reporter for Flakiness.io

Project description

pytest-flakiness

The official Flakiness.io reporter for pytest.

Automatically detect, track, and resolve flaky tests in your Python test suite. This plugin hooks into your pytest execution and uploads test results directly to your Flakiness.io dashboard.

Installation

Install using uv (recommended):

uv add --dev pytest-flakiness

Or via standard pip:

pip install pytest-flakiness

Configuration

To upload reports, you need your project's API Key. You can find this in your project settings on flakiness.io.

Set the API key in your environment. This is best for CI/CD systems.

export FLAKINESS_API_KEY="fk_live_..."

Usage

Once installed, simply run pytest. If the FLAKINESS_API_KEY is present, the reporter will automatically activate, aggregate test results, and upload them at the end of the session.

uv run pytest

You should see a confirmation in your terminal summary:

...
PASSED [100%]
============================== 
✅ Flakiness.io report uploaded successfully:
https://app.flakiness.io/report/12345
==============================

CI/CD Example (GitHub Actions)

To ensure reports are uploaded during your CI runs, map the secret in your workflow:

- name: Run Tests
  env:
    FLAKINESS_API_KEY: ${{ secrets.FLAKINESS_API_KEY }}
  run: uv run pytest

License

MIT

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_flakiness-0.1.0.tar.gz (1.5 kB view details)

Uploaded Source

Built Distribution

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

pytest_flakiness-0.1.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file pytest_flakiness-0.1.0.tar.gz.

File metadata

  • Download URL: pytest_flakiness-0.1.0.tar.gz
  • Upload date:
  • Size: 1.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pytest_flakiness-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f295400c75a04247fc3963373ae6642c005c79b3abc50c601bb1213015d05f0f
MD5 842a52a6e6ed3b789e5d43588ba4c66b
BLAKE2b-256 3dd986ded37f95c0db50965a0b7569b32d7eb736c69acee49d55052fe15185c1

See more details on using hashes here.

File details

Details for the file pytest_flakiness-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pytest_flakiness-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pytest_flakiness-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 64207cd2513c0f7e66786d5d5bc162bc1983e26c9e2f425b3ca26321bd37b8de
MD5 cc28b066a6faa0f2613c9f402beb9943
BLAKE2b-256 77b0f5995681f25a1292e3fa7453201ee6d35a4ec5c838d7513fa7b926dc24f8

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