diff --git a/src/py_dvt_ate/reporting/templates/test_report.html b/src/py_dvt_ate/reporting/templates/test_report.html new file mode 100644 index 0000000..c9577f2 --- /dev/null +++ b/src/py_dvt_ate/reporting/templates/test_report.html @@ -0,0 +1,125 @@ +{% extends "base.html" %} + +{% block title %}{{ data.run.test_name }} - Test Report{% endblock %} + +{% block header_title %}{{ data.run.test_name }}{% endblock %} + +{% block content %} +
+

Test Overview

+
+ + + + + + + {% if data.run.description %} + + {% endif %} +
+
+ +
+

Results Summary

+
+
+
{{ data.passed_count }}
+
Passed
+
+
+
{{ data.failed_count }}
+
Failed
+
+
+
{{ data.results|length }}
+
Total Results
+
+
+
+ +
+

Test Results

+ {% if data.results %} + + + + + + + + + + + + + {% for result in data.results %} + + + + + + + + + {% endfor %} + +
ParameterValueUnitLower LimitUpper LimitStatus
{{ result.parameter }}{{ "%.6f"|format(result.value) }}{{ result.unit }}{% if result.lower_limit is not none %}{{ "%.6f"|format(result.lower_limit) }}{% else %}—{% endif %}{% if result.upper_limit is not none %}{{ "%.6f"|format(result.upper_limit) }}{% else %}—{% endif %} + {% if result.passed is true %} + PASS + {% elif result.passed is false %} + FAIL + {% else %} + N/A + {% endif %} +
+ {% else %} +

No results recorded for this test run.

+ {% endif %} +
+ +{% if data.charts %} +
+

Charts

+ {% for chart_name, chart_base64 in data.charts.items() %} +
+

{{ chart_name }}

+ {{ chart_name }} +
+ {% endfor %} +
+{% endif %} + +{% if data.run.config_json %} +
+

Test Configuration

+
+
{{ config_formatted }}
+
+
+{% endif %} + +{% endblock %}