Skip to main content

pytest plugin for test analytics and flaky-test detection. Free local HTML reports out of the box, or upload to cloudreport.dev for cloud history and team dashboards.

Project description

pytest-cloudreport

A pytest plugin for test analytics, trend tracking, and flaky test detection.

Two ways to use it: free local HTML reports with no account, or cloudreport.dev for cloud history, team dashboards, and CI trends.

About this repo: This plugin was extracted from the original pytest-cloudreport monorepo in April 2026 and open-sourced under MIT so the community can contribute. It is mature, PyPI-published, and battle-tested — the short git history here reflects only the split, not the amount of work behind it. All prior development history lives in the private platform repo.

Install

pip install pytest-cloudreport

Free — Local HTML Reports (no account)

Zero signup required. Run your tests and get a self-contained HTML report on disk.

One-off report

pytest --cloudreport-local

Writes cloudreport.html in the current directory. Open it in a browser to see pass/fail counts, durations, and any failing tests with tracebacks. If an API key is already configured, the run also uploads to cloudreport.dev.

Accumulated history (track trends over time)

pytest --cloudreport-local --accumulate

Appends the run to a local SQLite database at ~/.pytest-cloudreport/history.db and renders a 10-run trend chart in the HTML report. Everything stays on your machine.

Use this if you want:

  • a human-readable report as a CI artifact
  • offline or air-gapped environments
  • a try-before-you-sign-up look at what the plugin produces

Cloud — Hosted Dashboard

Sign up once, get persistent history, team dashboards, flaky test detection across runs, and CI-provider auto-detection.

Free during early access — no card required. Fair-use limits apply: 2 projects, 10,000 tests/month, and 14 days of history. Planned paid pricing is Starter at $24/month and Pro at $99/month.

5-step quickstart

  1. Sign up at cloudreport.dev — a default project is created for you.
  2. Copy your API key (shown once when the project is created; starts with pcr_).
  3. Install the pluginpip install pytest-cloudreport.
  4. Set the key:
    export PYTEST_CLOUD_API_KEY=pcr_your_key_here
    
  5. Run your tests:
    pytest
    

Results appear on your dashboard within seconds. No CI plugin install or GitHub App required — the plugin posts from wherever pytest runs.


Configuration

Values can come from environment variables or pytest.ini. Environment takes precedence.

Env var pytest.ini Default What it does
PYTEST_CLOUD_API_KEY cloudreport_api_key Project API key. Setting this auto-enables cloud upload.
PYTEST_CLOUD_API_URL cloudreport_api_url Production backend Override for self-hosted or preview deployments.
PYTEST_CLOUD_ENV cloudreport_environment ci Environment label attached to every run.

CLI flags

  • --cloudreport-local — generate a local HTML report. No API key required. If an API key is already configured, the same run also uploads to cloudreport.dev.
  • --accumulate — with --cloudreport-local, append this run to ~/.pytest-cloudreport/history.db so the HTML report shows trends.
  • --cloudreport — force-enable cloud upload even without PYTEST_CLOUD_API_KEY set (surfaces a warning so missing keys aren't silent).
  • --cloudreport-verbose — print upload result or error to stdout.

Privacy

The plugin sends test names, statuses, durations, assertion messages, and tracebacks. It does not send source code, test fixtures, environment variables, or stdout/stderr captured during the run.

Support

License

MIT. See LICENSE.

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_cloudreport-0.1.2.tar.gz (17.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_cloudreport-0.1.2-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file pytest_cloudreport-0.1.2.tar.gz.

File metadata

  • Download URL: pytest_cloudreport-0.1.2.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pytest_cloudreport-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b92957f735b944496c24292afb10c8c419f1da5c9582786d157e05c617bbc177
MD5 9349dabbc185afdf11887bd9ddbdbbbd
BLAKE2b-256 317ecb281f7067e29f350b14dd3049e4810eab3d9f0730b77c88ea690e459dac

See more details on using hashes here.

File details

Details for the file pytest_cloudreport-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_cloudreport-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b041aa7004d17b95aa0d43080d1a8f69542f6e2e4683895d9e798a5b2a733aa3
MD5 557eb2c303ff1b4d560cfaaa2d2632ba
BLAKE2b-256 54330aec1a48655eb32334482f94a54d6b71ce051d9efabebbf5ce3312eb9a11

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