Skip to content

Updating the NUnit 3 VS Test Adapter breaks compatibility with the Test Logger #246

Closed

Description

@dougwaldron

Describe the bug

After updating NUnit3TestAdapter to version 6.3.0, my unit test results files are no longer generated in the correct location.

Previously, a separate XML file for each unit test project would be creating using the following directory structure:

{solution root}/_artifacts/bin/{TestProjectName}/debug/TestResults/TestResults.xml

After updating, the XML files are generated instead with the following structure:

{solution root}/TestResults/TestResults.xml

Furthermore, since every test project uses the same destination file, it is overwritten multiple times with the final result being whichever project ran last.

  • Test Runner: MTPv2
  • Test Framework: Nunit
  • .NET project version, sdk version: net10.0, 10.0.401
  • Command line used: dotnet test --report-spekt-nunit
  • OS: GitHub action using Windows or Linux

Expected behavior

No change to the test result file locations.

Other details

I can work around this issue by changing the test run command to dotnet test --report-spekt-nunit "LogFilePath=TestResults/TestResults.xml". This restores the previous file locations.

Additional context

I originally reported this issue at nunit/nunit3-vs-adapter/issues/1505

I'm really not clear on how this project and MTP and NUnit3TestAdapter all interact, but please see the comment at nunit/nunit3-vs-adapter#1505 (comment) and following for more background:

The same problem should appear in XUnit, MSTest and TUnit, so the fix has to be done in the testlogger.

Activity

  1. self-assigned this
    on Oct 7, 2026
  2. codito commented on Oct 24, 2026

    @codito
    Contributor

    Thank you for reporting this issue.

    This behavior is expected because of upstream changes in dotnet test as noted in microsoft/testfx#10116 (comment). It affects all test loggers irrespective of the test framework used.

    Spekt logger uses default dotnet test behavior if LogFilePath is not provided. This is by design. If you choose this path, please consider using --results-directory-layout to avoid overwriting of reports. See dotnet/sdk#55475.

  3. dougwaldron commented on Oct 24, 2026

    @dougwaldron
    Author

    @codito Thanks! Like I said, I couldn't tell where the break originated. I appreciate the references -- that will help a lot going forward!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions