Skip to content

Summary format broken when reading trx from multiple artifacts using artifact pattern #675

@julealgon

Description

@julealgon

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

  1. Provide a wildcard or regex pattern to the artifacts argument that captures more than one GitHub artifact (e.g. /test-results-(.*)/)
  2. Use dotnet-trx reporter
  3. 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:
Image

Note that the second header doesn't render correctly, like the following:

4 passed, 0 failed and 0 skipped Tests passed successfully

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.

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions