Skip to content
Merged
Changes from 3 commits
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
15 changes: 8 additions & 7 deletions TUnit.Engine/Reporters/Html/HtmlReportGenerator.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System.Globalization;
using System.Net;
using System.Text;
using System.Text.Json;
Expand Down Expand Up @@ -220,7 +221,7 @@

sb.AppendLine("</svg>");
sb.Append("<div class=\"ring-center\"><span class=\"ring-pct\">");
sb.Append(passRate.ToString("F0"));
sb.Append(passRate.ToString("F0", CultureInfo.InvariantCulture));
sb.Append("<small>%</small></span><span class=\"ring-lbl\">");
sb.Append(summary.Total > 0 ? "pass rate" : "no tests");
sb.AppendLine("</span></div>");
Expand Down Expand Up @@ -252,11 +253,11 @@
sb.Append("<circle class=\"ring-seg\" cx=\"60\" cy=\"60\" r=\"54\" fill=\"none\" stroke=\"");
sb.Append(color);
sb.Append("\" stroke-width=\"10\" stroke-linecap=\"round\" stroke-dasharray=\"");
sb.Append(len.ToString("F2"));
sb.Append(len.ToString("F2", CultureInfo.InvariantCulture));
sb.Append(' ');
sb.Append((circumference - len).ToString("F2"));
sb.Append((circumference - len).ToString("F2", CultureInfo.InvariantCulture));
sb.Append("\" stroke-dashoffset=\"-");
sb.Append(offset.ToString("F2"));
sb.Append(offset.ToString("F2", CultureInfo.InvariantCulture));
sb.AppendLine("\" transform=\"rotate(-90 60 60)\"/>");
}

Expand Down Expand Up @@ -368,15 +369,15 @@
// Show milliseconds for anything under 1 second (avoids rounding 999ms to "1.00s")
if (Math.Round(ms) < 1000)
{
return $"{ms:F0}ms";
return string.Create(CultureInfo.InvariantCulture, $"{ms:F0}ms");

Check failure on line 372 in TUnit.Engine/Reporters/Html/HtmlReportGenerator.cs

View workflow job for this annotation

GitHub Actions / modularpipeline (fr-FR)

Parmi les arguments spécifiés, aucun ne correspond au paramètre obligatoire 'action' de 'Polyfill.extension(string).Create<TState>(int, TState, SpanAction<char, TState>)'

Check failure on line 372 in TUnit.Engine/Reporters/Html/HtmlReportGenerator.cs

View workflow job for this annotation

GitHub Actions / modularpipeline (fr-FR)

Parmi les arguments spécifiés, aucun ne correspond au paramètre obligatoire 'action' de 'Polyfill.extension(string).Create<TState>(int, TState, SpanAction<char, TState>)'

Check failure on line 372 in TUnit.Engine/Reporters/Html/HtmlReportGenerator.cs

View workflow job for this annotation

GitHub Actions / modularpipeline (de-DE)

Es wurde kein Argument angegeben, das dem erforderlichen Parameter "action" von "Polyfill.extension(string).Create<TState>(int, TState, SpanAction<char, TState>)" entspricht.

Check failure on line 372 in TUnit.Engine/Reporters/Html/HtmlReportGenerator.cs

View workflow job for this annotation

GitHub Actions / modularpipeline (de-DE)

Es wurde kein Argument angegeben, das dem erforderlichen Parameter "action" von "Polyfill.extension(string).Create<TState>(int, TState, SpanAction<char, TState>)" entspricht.

Check failure on line 372 in TUnit.Engine/Reporters/Html/HtmlReportGenerator.cs

View workflow job for this annotation

GitHub Actions / modularpipeline (macos-latest)

There is no argument given that corresponds to the required parameter 'action' of 'Polyfill.extension(string).Create<TState>(int, TState, SpanAction<char, TState>)'

Check failure on line 372 in TUnit.Engine/Reporters/Html/HtmlReportGenerator.cs

View workflow job for this annotation

GitHub Actions / modularpipeline (macos-latest)

There is no argument given that corresponds to the required parameter 'action' of 'Polyfill.extension(string).Create<TState>(int, TState, SpanAction<char, TState>)'

Check failure on line 372 in TUnit.Engine/Reporters/Html/HtmlReportGenerator.cs

View workflow job for this annotation

GitHub Actions / modularpipeline (windows-latest)

There is no argument given that corresponds to the required parameter 'action' of 'Polyfill.extension(string).Create<TState>(int, TState, SpanAction<char, TState>)'

Check failure on line 372 in TUnit.Engine/Reporters/Html/HtmlReportGenerator.cs

View workflow job for this annotation

GitHub Actions / modularpipeline (windows-latest)

There is no argument given that corresponds to the required parameter 'action' of 'Polyfill.extension(string).Create<TState>(int, TState, SpanAction<char, TState>)'

Check failure on line 372 in TUnit.Engine/Reporters/Html/HtmlReportGenerator.cs

View workflow job for this annotation

GitHub Actions / modularpipeline (ubuntu-latest)

There is no argument given that corresponds to the required parameter 'action' of 'Polyfill.extension(string).Create<TState>(int, TState, SpanAction<char, TState>)'

Check failure on line 372 in TUnit.Engine/Reporters/Html/HtmlReportGenerator.cs

View workflow job for this annotation

GitHub Actions / modularpipeline (ubuntu-latest)

There is no argument given that corresponds to the required parameter 'action' of 'Polyfill.extension(string).Create<TState>(int, TState, SpanAction<char, TState>)'
}

if (ms < 60000)
{
return $"{ms / 1000:F2}s";
return string.Create(CultureInfo.InvariantCulture, $"{ms / 1000:F2}s");

Check failure on line 377 in TUnit.Engine/Reporters/Html/HtmlReportGenerator.cs

View workflow job for this annotation

GitHub Actions / modularpipeline (fr-FR)

Parmi les arguments spécifiés, aucun ne correspond au paramètre obligatoire 'action' de 'Polyfill.extension(string).Create<TState>(int, TState, SpanAction<char, TState>)'

Check failure on line 377 in TUnit.Engine/Reporters/Html/HtmlReportGenerator.cs

View workflow job for this annotation

GitHub Actions / modularpipeline (fr-FR)

Parmi les arguments spécifiés, aucun ne correspond au paramètre obligatoire 'action' de 'Polyfill.extension(string).Create<TState>(int, TState, SpanAction<char, TState>)'

Check failure on line 377 in TUnit.Engine/Reporters/Html/HtmlReportGenerator.cs

View workflow job for this annotation

GitHub Actions / modularpipeline (de-DE)

Es wurde kein Argument angegeben, das dem erforderlichen Parameter "action" von "Polyfill.extension(string).Create<TState>(int, TState, SpanAction<char, TState>)" entspricht.

Check failure on line 377 in TUnit.Engine/Reporters/Html/HtmlReportGenerator.cs

View workflow job for this annotation

GitHub Actions / modularpipeline (de-DE)

Es wurde kein Argument angegeben, das dem erforderlichen Parameter "action" von "Polyfill.extension(string).Create<TState>(int, TState, SpanAction<char, TState>)" entspricht.

Check failure on line 377 in TUnit.Engine/Reporters/Html/HtmlReportGenerator.cs

View workflow job for this annotation

GitHub Actions / modularpipeline (macos-latest)

There is no argument given that corresponds to the required parameter 'action' of 'Polyfill.extension(string).Create<TState>(int, TState, SpanAction<char, TState>)'

Check failure on line 377 in TUnit.Engine/Reporters/Html/HtmlReportGenerator.cs

View workflow job for this annotation

GitHub Actions / modularpipeline (macos-latest)

There is no argument given that corresponds to the required parameter 'action' of 'Polyfill.extension(string).Create<TState>(int, TState, SpanAction<char, TState>)'

Check failure on line 377 in TUnit.Engine/Reporters/Html/HtmlReportGenerator.cs

View workflow job for this annotation

GitHub Actions / modularpipeline (windows-latest)

There is no argument given that corresponds to the required parameter 'action' of 'Polyfill.extension(string).Create<TState>(int, TState, SpanAction<char, TState>)'

Check failure on line 377 in TUnit.Engine/Reporters/Html/HtmlReportGenerator.cs

View workflow job for this annotation

GitHub Actions / modularpipeline (windows-latest)

There is no argument given that corresponds to the required parameter 'action' of 'Polyfill.extension(string).Create<TState>(int, TState, SpanAction<char, TState>)'

Check failure on line 377 in TUnit.Engine/Reporters/Html/HtmlReportGenerator.cs

View workflow job for this annotation

GitHub Actions / modularpipeline (ubuntu-latest)

There is no argument given that corresponds to the required parameter 'action' of 'Polyfill.extension(string).Create<TState>(int, TState, SpanAction<char, TState>)'

Check failure on line 377 in TUnit.Engine/Reporters/Html/HtmlReportGenerator.cs

View workflow job for this annotation

GitHub Actions / modularpipeline (ubuntu-latest)

There is no argument given that corresponds to the required parameter 'action' of 'Polyfill.extension(string).Create<TState>(int, TState, SpanAction<char, TState>)'
}

return $"{ms / 60000:F1}m";
return string.Create(CultureInfo.InvariantCulture, $"{ms / 60000:F1}m");

Check failure on line 380 in TUnit.Engine/Reporters/Html/HtmlReportGenerator.cs

View workflow job for this annotation

GitHub Actions / modularpipeline (fr-FR)

Parmi les arguments spécifiés, aucun ne correspond au paramètre obligatoire 'action' de 'Polyfill.extension(string).Create<TState>(int, TState, SpanAction<char, TState>)'

Check failure on line 380 in TUnit.Engine/Reporters/Html/HtmlReportGenerator.cs

View workflow job for this annotation

GitHub Actions / modularpipeline (fr-FR)

Parmi les arguments spécifiés, aucun ne correspond au paramètre obligatoire 'action' de 'Polyfill.extension(string).Create<TState>(int, TState, SpanAction<char, TState>)'

Check failure on line 380 in TUnit.Engine/Reporters/Html/HtmlReportGenerator.cs

View workflow job for this annotation

GitHub Actions / modularpipeline (de-DE)

Es wurde kein Argument angegeben, das dem erforderlichen Parameter "action" von "Polyfill.extension(string).Create<TState>(int, TState, SpanAction<char, TState>)" entspricht.

Check failure on line 380 in TUnit.Engine/Reporters/Html/HtmlReportGenerator.cs

View workflow job for this annotation

GitHub Actions / modularpipeline (de-DE)

Es wurde kein Argument angegeben, das dem erforderlichen Parameter "action" von "Polyfill.extension(string).Create<TState>(int, TState, SpanAction<char, TState>)" entspricht.

Check failure on line 380 in TUnit.Engine/Reporters/Html/HtmlReportGenerator.cs

View workflow job for this annotation

GitHub Actions / modularpipeline (macos-latest)

There is no argument given that corresponds to the required parameter 'action' of 'Polyfill.extension(string).Create<TState>(int, TState, SpanAction<char, TState>)'

Check failure on line 380 in TUnit.Engine/Reporters/Html/HtmlReportGenerator.cs

View workflow job for this annotation

GitHub Actions / modularpipeline (macos-latest)

There is no argument given that corresponds to the required parameter 'action' of 'Polyfill.extension(string).Create<TState>(int, TState, SpanAction<char, TState>)'

Check failure on line 380 in TUnit.Engine/Reporters/Html/HtmlReportGenerator.cs

View workflow job for this annotation

GitHub Actions / modularpipeline (windows-latest)

There is no argument given that corresponds to the required parameter 'action' of 'Polyfill.extension(string).Create<TState>(int, TState, SpanAction<char, TState>)'

Check failure on line 380 in TUnit.Engine/Reporters/Html/HtmlReportGenerator.cs

View workflow job for this annotation

GitHub Actions / modularpipeline (windows-latest)

There is no argument given that corresponds to the required parameter 'action' of 'Polyfill.extension(string).Create<TState>(int, TState, SpanAction<char, TState>)'

Check failure on line 380 in TUnit.Engine/Reporters/Html/HtmlReportGenerator.cs

View workflow job for this annotation

GitHub Actions / modularpipeline (ubuntu-latest)

There is no argument given that corresponds to the required parameter 'action' of 'Polyfill.extension(string).Create<TState>(int, TState, SpanAction<char, TState>)'

Check failure on line 380 in TUnit.Engine/Reporters/Html/HtmlReportGenerator.cs

View workflow job for this annotation

GitHub Actions / modularpipeline (ubuntu-latest)

There is no argument given that corresponds to the required parameter 'action' of 'Polyfill.extension(string).Create<TState>(int, TState, SpanAction<char, TState>)'
}

private static string GetCss()
Expand Down
Loading