[Issue #16] - Abstracted benchmarks from tests via BenchmarkProfile model, to allow for linking benchmarks with different runtime settings
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Gregory Ballantine
2025-09-11 16:09:00 -04:00
parent a736113abd
commit b19c95187b
8 changed files with 128 additions and 15 deletions

View File

@@ -21,29 +21,31 @@
<div class="row">
<div class="col-12">
<h3 class="mb-3">Tests using this benchmark:</h3>
<h3 class="mb-3">Profiles created for this benchmark:</h3>
<% if benchmark.tests.length > 0 %>
<% if benchmark.benchmark_profiles.length > 0 %>
<table class="table table-hover table-responsive">
<thead class="table-light">
<tr>
<th>Test title</th>
<th>Benchmarks</th>
<th>Profile Label</th>
<th>Tests Linked</th>
<th>Created at</th>
<th>Last updated</th>
</tr>
</thead>
<tbody>
<% benchmark.tests.each do |t| %>
<% benchmark.benchmark_profiles.each do |bp| %>
<tr>
<td><a href="/test/<%= t.id %>"><%= t.name %></a></td>
<td><%= t.benchmarks.length %></td>
<td><%= t.updated_at %></td>
<td><%= bp.display_name %></td>
<td><%= bp.tests.length %></td>
<td><%= bp.created_at %></td>
<td><%= bp.updated_at %></td>
</tr>
<% end %>
</tbody>
</table>
<% else %>
<p>There are no tests associated with this benchmark.</p>
<p>There are no profiles associated with this benchmark.</p>
<% end %>
</div>
</div>

View File

@@ -17,7 +17,7 @@
<% tests.each do |t| %>
<tr>
<td><a href="/test/<%= t.id %>"><%= t.name %></a></td>
<td><%= t.benchmarks.length %></td>
<td><%= t.benchmark_profiles.length %></td>
<td><%= t.updated_at %></td>
</tr>
<% end %>