Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/TUnit.Engine/Reporters/Html/TestReport.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@

/* ============================== run view ============================== */
.run-wrap { max-width: 1280px; margin: 0 auto; padding: 28px 28px 80px; }
.run-grid-1 { display: grid; grid-template-columns: 320px 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.run-grid-1 { display: grid; grid-template-columns: 320px minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
@media (max-width: 1100px) { .run-grid-1 { grid-template-columns: 1fr; } }
Comment thread
greptile-apps[bot] marked this conversation as resolved.
Outdated
.run-grid-2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 1100px) { .run-grid-2 { grid-template-columns: 1fr; } }
Expand Down Expand Up @@ -656,7 +656,7 @@
/* strip card */
.strip-card { padding: 20px; }
.strip-card .card-title { margin-bottom: 14px; }
.outcome-strip { display: flex; gap: 1px; height: 60px; align-items: stretch; }
.outcome-strip { display: flex; gap: 1px; height: 60px; align-items: stretch; overflow-x: auto; overflow-y: hidden; }
.outcome-strip .tick { flex: 1; min-width: 2px; border-radius: 2px; opacity: 0.85; transition: opacity 100ms, transform 100ms; cursor: pointer; }
.outcome-strip .tick:hover { opacity: 1; transform: scaleY(1.06); }
.outcome-strip .tick.pass { background: var(--pass); }
Expand Down
20 changes: 20 additions & 0 deletions tests/TUnit.Engine.Tests/HtmlReporterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,26 @@ public void GenerateHtml_SubstitutesTitleAndProjectPlaceholders()
html.ShouldContain("id=\"projectName\">MyProject.Tests<");
}

[Test]
public void GenerateHtml_Constrains_Outcome_Timeline_To_Its_Grid_Column()
{
var html = HtmlReportGenerator.GenerateHtml(new ReportData
{
AssemblyName = "Tests",
MachineName = "machine",
Timestamp = "2026-08-09T00:00:00.0000000Z",
TUnitVersion = "1.0.0",
OperatingSystem = "Windows",
RuntimeVersion = ".NET 10.0",
TotalDurationMs = 0,
Summary = new ReportSummary(),
Groups = [],
});

html.ShouldContain("grid-template-columns: 320px minmax(0, 1fr) minmax(0, 1fr)");
html.ShouldContain(".outcome-strip { display: flex; gap: 1px; height: 60px; align-items: stretch; overflow-x: auto; overflow-y: hidden; }");
}

[Test]
public void GenerateHtml_EmitsAttemptsArray_WhenTestWasRetried()
{
Expand Down
Loading