Skip to content

Add support for replacement macros in LogFilePath #2

@jrr

Description

@jrr

When I run dotnet test at the solution level, results are placed within each test project like this:

Foo.Test/TestResults/TestResults.xml
Bar.Test/TestResults/TestResults.xml

I'd like to produce output like this:

test-results/
   Foo.Test.xml
   Bar.Test.xml

I can get part way there with dotnet test --logger "junit;LogFilePath=../test-results/foo.xml", but then all my test suites will rewrite the one foo.xml file.

Is it possible to emit filenames based on the name of the test project? (If not, consider this a feature request!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions