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 += "Total steps: {total_steps}
" + html_content += "