Skip to content

Commit

Permalink
Merge pull request #90 from rvernica/fix-summary-traffic-light
Browse files Browse the repository at this point in the history
Fix test result attribute in summary template
  • Loading branch information
sharonxiaohanli authored Nov 27, 2024
2 parents 0d9311b + 85a3554 commit 340c38b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/agenteval/templates/summary/agenteval_summary.md.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ This document provides a summary of the tests executed by Agent Evaluation.
---
## Tests
{% for test, result in zip(tests, results) -%}
- [{% if result.success %}🟢{% else %}🔴{% endif %} {{ test.name }}](#{{ test.name | replace(' ', '-') }})
- [{% if result.passed %}🟢{% else %}🔴{% endif %} {{ test.name }}](#{{ test.name | replace(' ', '-') }})
{% endfor %}

---

{% for test, result in zip(tests, results) -%}
## <a id={{ test.name | replace(' ', '-') }}></a>{% if result.success %}🟢{% else %}🔴{% endif %} {{ test.name }}
## <a id={{ test.name | replace(' ', '-') }}></a>{% if result.passed %}🟢{% else %}🔴{% endif %} {{ test.name }}

**Steps**
{% for step in test.steps -%}
Expand Down

0 comments on commit 340c38b

Please sign in to comment.