Added ability to load benchmark results when viewing a test

This commit is contained in:
2025-06-23 18:05:28 -04:00
parent a83f7e3b0b
commit 175bfa0dfd
5 changed files with 98 additions and 12 deletions

View File

@ -56,10 +56,11 @@
<div class="row">
<div class="twelve columns">
<h3>Benchmarks</h3>
<table class="u-full-width">
<table id="results-table" data-test-id="{{ test.id }}" class="u-full-width">
<thead>
<tr>
<td>Benchmark</td>
<td>Scoring type</td>
<td># Results</td>
<td>Avg.</td>
<td>Min.</td>
@ -68,13 +69,7 @@
</thead>
<tbody>
{% for b in test.getBenchmarks() %}
<tr>
<td>{{ b.name }}</td>
<td>{{ test.getResults({where: {testId: test.id}})|length }}</td>
<td>N/a</td>
<td>N/a</td>
<td>N/a</td>
</tr>
<tr data-benchmark-id="{{ b.id }}"></tr>
{% endfor %}
</tbody>
</table>
@ -84,4 +79,6 @@
<p><a href="/test">Back</a></p>
</div>
<script src="/js/test.js" type="text/javascript"></script>
{% endblock %}