| 1 |
{% extends "base.html" %} |
| 2 |
{% import "repo_tabs.html" as m %} |
| 3 |
{% block title %}{{ title }} · Tests · {{ repo.owner }}/{{ repo.name }}{% endblock %} |
| 4 |
{% block tabs %}{% call m::tabs(repo, "tests") %}{% endblock %} |
| 5 |
{% block content %} |
| 6 |
<div class="head"><h1><code>{{ title }}</code></h1><p class="mute"><a href="{{ repo.url }}/tests?bookmark={{ bookmark }}">Tests</a> on <strong>{{ bookmark }}</strong> · the last {{ runs.len() }} runs: <span class="cov-good">{{ passed }} passed</span>{% if failed > 0 %}, <span class="cov-poor">{{ failed }} failed</span>{% endif %}</p></div> |
| 7 |
{% if runs.len() > 1 %}<section class="panel"><h2>Time per run</h2>{{ time_chart|safe }}</section>{% endif %} |
| 8 |
<section class="panel"> |
| 9 |
<div class="table"><table class="cov-runs"> |
| 10 |
<tr><th>Run</th><th>Job</th><th>Result</th><th class="num">Time</th><th>Message</th><th>When</th></tr> |
| 11 |
{% for r in runs %}<tr> |
| 12 |
<td><a href="{{ repo.url }}/tests?report={{ r.report_id }}">#{{ r.run_number }}</a></td> |
| 13 |
<td>{{ r.job }}</td> |
| 14 |
<td>{% if r.status == "passed" %}<span class="cov-good">✓ passed</span>{% else if r.status == "skipped" %}<span class="mute">skipped</span>{% else %}<span class="cov-poor">✕ {{ r.status }}</span>{% endif %}</td> |
| 15 |
<td class="num">{{ self.time(r.time_ms) }}</td> |
| 16 |
<td class="small mute">{{ r.message }}</td> |
| 17 |
<td class="small"><time title="{{ r.created_ms|when_i }}">{{ r.created_ms|ago_i }}</time></td> |
| 18 |
</tr>{% endfor %} |
| 19 |
</table></div> |
| 20 |
</section> |
| 21 |
{% endblock %} |