Describe the bug
The summary generated when using multiple artifact sources with trx files appears broken after the first section: subsequent sections do not render properly
To Reproduce
- Provide a wildcard or regex pattern to the
artifacts argument that captures more than one GitHub artifact (e.g. /test-results-(.*)/)
- Use
dotnet-trx reporter
- Observe formatting issue once summary is generated
Expected behavior
Each artifact should generate a separate heading section, properly spaced out and formatted correctly.
Screenshots
Here is an example of 2 artifacts each with a single trx file:

Note that the second header doesn't render correctly, like the following:
4 passed, 0 failed and 0 skipped 
Additional context
I'm not sure if this is specific to the trx reporter since that's the only one we use.
The results produced when a failure occurs are even more broken.