Skip to main content

Pytest-RCA-Report

An interactive Root Cause Analysis (RCA) dashboard for any Pytest project.
Quickly visualize, triage, and investigate test failures with actionable LLM-powered insights.

Features

  • Visual summary of all test results (pass/fail/skip), anomalies, and execution times.
  • Root Cause Analysis: Highlights failing modules/scripts.
  • Interactive test table with search, status filtering, and drilldown for each test case.
  • Classification of failures: Distinguishes between likely real bugs and probable test/infrastructure issues.
  • Actionable recommendations generated by LLM (e.g. GPT-4).
  • Downloadable results in JSON/CSV.
  • Summary graphs (pie/bar) and execution time distribution.
  • Responsive UI – optimized for both desktop and mobile.
  • Works with any Pytest project: Supports unit, integration, and end-to-end tests, as long as JUnit XML is generated.

Demo

RCA Dashboard Demo

Installation

pip install pytest-rca-report

Usage

  1. Run your tests with JUnit XML output:
    pytest --junitxml=pytest-results.xml
    
  2. Generate the RCA report:
    pytest-rca-report
    
  3. View the dashboard:
    python -m http.server --directory dashboard
    
    Then open http://localhost:8000/index.html in your browser.

Usage & Navigation

  • Results Summary: Top summary of all tests.
  • Summary Graphs: Pie & bar charts of pass/fail/skip.
  • Log Anomalies: Aggregated errors and warnings across all tests.
  • Root Cause Analysis: Failure counts per module/script.
  • Execution Time: Histogram & slowest tests listed.
  • Actionable Recommendations: Next steps as suggested by the LLM.
  • All Testcases Table:
    • Search any test by name.
    • Filter by status (Passed/Failed/Skipped).
    • Click any row for a detailed modal with properties and failure reason.
    • Download all results as JSON or CSV.
  • Failure Classification: Clear separation between likely real bugs and possible test automation issues.

Requirements

  • Python 3.9+
  • OpenAI API key (set as OPENAI_API_KEY in your environment)

Troubleshooting

  • If the dashboard doesn't load data, always serve the dashboard folder with a local web server (not by opening the HTML file directly).

Roadmap / Suggestions

  • Regression trend analysis between runs
  • "Mark as Known Issue" UI
  • Integration with defect tracking (Jira etc.)
  • Team comments on test failures

Metadata

Release files for pytest-rca-report 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-rca-report 0.1.3
File Size Uploaded
pytest_rca_report-0.1.3.tar.gz 14.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-rca-report 0.1.3
File Interpreter ABI Platform
pytest_rca_report-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 30.7 kB

Release files / pytest_rca_report-0.1.3.tar.gz

Download URL pytest_rca_report-0.1.3.tar.gz
Size 14.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2726337dd0c2672f3dc31a58cccb2e4872cb3218e2241a137711756eb42f7e23
BLAKE2b-256 checksum
How to use checksums
d83b8d2ad0bb612ddc957e23b64d98a0e7370ba1ea17857e84910a19abfaf408
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / pytest_rca_report-0.1.3-py3-none-any.whl

Download URL pytest_rca_report-0.1.3-py3-none-any.whl
Size 15.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9d4524ed44d59eee8ef6e0e419e4b40bcc3f98a1f3506250233bc3865e206bca
BLAKE2b-256 checksum
How to use checksums
da1969ea8053234a8bcf63dd4e0255fb946d1db1e62ea1f56ca3f07420992273
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page