Skip to content

Conflicting .trx logfiles when testing solution with explicit LogFileName #15673

@benjiwolff

Description

@benjiwolff

Observed Behavior

When testing a solution and specifying a LogFileName like this,

dotnet test Solution.slnx --logger:"trx;LogFileName=Results.trx"

each test assembly in the solution writes the same file Results.trx independently. On completion, Results.txt only contains the results for the test assembly that finished last, all other results are missing.

Expected Behavior

One of the following
When testing a solution,

  1. specifying a LogFileName with multiple test assemblies throws a validation error.
  2. the LogFileName argument is ignored
  3. each test assembly writes to a unique variant of the LogFileName e.g. Results[0].trx, Results[1].trx. etc.
  4. (most expected) the results of all test assemblies are somehow merged into a single Results.trx

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions