From 36f76f2b28ccbb660c09ceb8d6a3108b3fdd439a Mon Sep 17 00:00:00 2001 From: AI Agent Date: Mon, 5 Oct 2026 22:03:50 +0530 Subject: [PATCH] fix: add a summary of test results at the top of the HTML report (Closes #6) --- src/pypts/report.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/pypts/report.py b/src/pypts/report.py index ac7992c..36ed609 100644 --- a/src/pypts/report.py +++ b/src/pypts/report.py @@ -359,8 +359,18 @@ def generate_html_report(csv_path: Path, html_path: Path, output_dir: Path = Non html_content += "

Run Context: No results data found.

" total_steps = len(results) + status_counts = {} + for row in results: + status = str(row.get('result', 'Unknown')).split('.')[-1].lower() + status_counts[status] = status_counts.get(status, 0) + 1 + html_content += "

Summary

" html_content += f"

Total steps: {total_steps}

" + html_content += "" html_content += "

Details

" html_content += ""