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, zero network calls. 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.

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, no limits. See the pricing page for the Free / Team / Business breakdown once paid plans launch.

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.
  • --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.1.tar.gz (16.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_cloudreport-0.1.1-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pytest_cloudreport-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c272761a0e5caf4c79e0d0403b7302c928502131d5580b2de28f0821561435b3
MD5 eb4162fcc515b2d91c965ecf63cbe8c7
BLAKE2b-256 52a883564ca97e1533292313347c92654facf9c623822b7df09930b4b1cbb308

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytest_cloudreport-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d90f7e2ecff6aa2c71e9db11fe0d8bc9bf07d7f52b3fb664478864f26155cee9
MD5 fb889bb67269655e803b722f7f1ddd5b
BLAKE2b-256 f7ffc24d7ee06abc9ab5c01178d58056c495d364a2091da037101585094ab979

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