You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Updating the NUnit 3 VS Test Adapter breaks compatibility with the Test Logger #246
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.
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.
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.
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.
Activity
codito commentedon Oct 24, 2026
Thank you for reporting this issue.
This behavior is expected because of upstream changes in
dotnet testas noted in microsoft/testfx#10116 (comment). It affects all test loggers irrespective of the test framework used.Spekt logger uses default
dotnet testbehavior ifLogFilePathis not provided. This is by design. If you choose this path, please consider using--results-directory-layoutto avoid overwriting of reports. See dotnet/sdk#55475.dougwaldron commentedon Oct 24, 2026
@codito Thanks! Like I said, I couldn't tell where the break originated. I appreciate the references -- that will help a lot going forward!