Skip to content
Merged
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
Prev Previous commit
Next Next commit
Polish HtmlReporter regression tests
Agent-Logs-Url: https://github.com/thomhurst/TUnit/sessions/48d47cff-3125-44ff-b19b-e1dfe712be9f

Co-authored-by: thomhurst <30480171+thomhurst@users.noreply.github.com>
  • Loading branch information
Copilot and thomhurst authored May 7, 2026
commit 7a3a1ba2176b41aa3ff52d332153034883f3fd93
8 changes: 4 additions & 4 deletions TUnit.Engine.Tests/HtmlReporterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ public void FilterAdditionalTraceIds_Returns_Empty_When_Only_Primary()
[Test]
public void OrderTestsForDisplay_SortsByStartTime_ThenName()
{
var later = CreateReportTestResult("Later", "2026-05-07T09:26:25.0000000Z");
var earlier = CreateReportTestResult("Earlier", "2026-05-07T09:26:24.0000000Z");
var sameTimeButLaterName = CreateReportTestResult("Zeta", "2026-05-07T09:26:24.0000000Z");
var later = CreateTestResultWithStartTime("Later", "2026-05-07T09:26:25.0000000Z");
var earlier = CreateTestResultWithStartTime("Earlier", "2026-05-07T09:26:24.0000000Z");
var sameTimeButLaterName = CreateTestResultWithStartTime("Zeta", "2026-05-07T09:26:24.0000000Z");

var ordered = HtmlReporter.OrderTestsForDisplay([later, sameTimeButLaterName, earlier]);

Expand Down Expand Up @@ -166,7 +166,7 @@ public async Task PublishArtifactAsync_Publishes_With_Correct_SessionUid()
}
}

private static ReportTestResult CreateReportTestResult(string displayName, string? startTime) => new()
private static ReportTestResult CreateTestResultWithStartTime(string displayName, string? startTime) => new()
{
Id = displayName,
DisplayName = displayName,
Expand Down
Loading