Skip to content

Commit

Permalink
Fix markup style error if test contains [ or ]
Browse files Browse the repository at this point in the history
This can happen for test theories, for example.
  • Loading branch information
kzu committed Jul 31, 2024
1 parent 4727a27 commit 56ae645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dotnet-trx/TrxCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public override int Execute(CommandContext context, TrxSettings settings)

foreach (var result in results)
{
var test = result.Attribute("testName")!.Value;
var test = result.Attribute("testName")!.Value.EscapeMarkup();
var elapsed = TimeSpan.Parse(result.Attribute("duration")!.Value);
var output = settings.Output ? result.CssSelectElement("StdOut")?.Value : default;

Expand Down

0 comments on commit 56ae645

Please sign in to comment.