{% set ns = namespace(tests=summary.total_evaluations, passed=0, failed=0, pending=0, running=0, not_started=0) %} {% for r in summary.results %} {% set status = r.result.status if r.result and r.result.status is defined else None %} {% if status == 'not_started' %}{% set ns.not_started = ns.not_started + 1 %}{% elif status == 'pending' %}{% set ns.pending = ns.pending + 1 %}{% elif status == 'running' %}{% set ns.running = ns.running + 1 %}{% endif %} {% set p = namespace(pass=false, fail=false) %} {% if r.result and r.result.scores %} {% for s in r.result.scores %} {% if s.passed is true %}{% set p.pass = true %}{% elif s.passed is false and p.pass is not true %}{% set p.fail = true %}{% endif %} {% endfor %} {% endif %} {% if p.pass %}{% set ns.passed = ns.passed + 1 %}{% elif p.fail %}{% set ns.failed = ns.failed + 1 %}{% endif %} {% endfor %} {% set pending_total = ns.pending + ns.running + ns.not_started %} {% set total = summary.total_evaluations %} {% set completed = (total - pending_total) if total else 0 %} {% set pct_done = ((completed / total) * 100) | round(0) | int if total > 0 else 0 %} {% set pill_tones = { 'not_started': 'text-zinc-400 bg-zinc-500/10 border border-zinc-500/40', 'pending': 'text-blue-300 bg-blue-500/10 border border-blue-500/40', 'running': 'text-cyan-300 bg-cyan-500/10 border border-cyan-500/40', 'completed': 'text-emerald-300 bg-emerald-500/10 border border-emerald-500/40', 'error': 'text-rose-300 bg-rose-500/10 border border-rose-500/40', 'cancelled': 'text-amber-300 bg-amber-500/10 border border-amber-500/40' } %}
| Function | Input | Reference | Output | Scores | Time | ||
|---|---|---|---|---|---|---|---|
|
{% if is_not_started %}
{{ r.function }}
{% else %}
{{ r.function }}
{% endif %}
{% if status == 'running' %}
running
{% elif status == 'error' %}
err
{% endif %}
{{ r.dataset }}
{% if r.labels %}
·
{% for la in r.labels %}
{{ la }}
{% endfor %}
{% endif %}
|
{{ r.result.input }}
|
{% if r.result.reference %}
{{ r.result.reference }}
{% else %}
—
{% endif %}
|
{% if is_not_started %}
—
{% elif is_running %}
{{ r.result.output }}
{% elif r.result.error %}
{{ r.result.error }}
{% else %}
—
{% endif %}
|
{% if is_not_started %}
—
{% elif is_running %}
{% set max_scores = 2 %}
{% for s in r.result.scores %}
{% set badge_class = 'bg-zinc-200 text-zinc-600 dark:bg-zinc-800/60 dark:text-zinc-400' %}
{% if s.passed is true %}{% set badge_class = 'bg-emerald-500/15 text-emerald-600 dark:text-emerald-400' %}
{% elif s.passed is false %}{% set badge_class = 'bg-rose-500/15 text-rose-600 dark:text-rose-400' %}{% endif %}
{% endfor %}
{% if r.result.scores | length > max_scores %}
+{{ r.result.scores | length - max_scores }}
{% endif %}
{% else %}
—
{% endif %}
|
{% if r.result.latency is not none %} {% set latency = r.result.latency %} {{ latency | round(2) }}s {% elif is_running %} {% else %} — {% endif %} |