I have a test project written in dotnet core. This need to publish the results in an XML or HTML format. Is there a way I can publish the results to a particular directory using
After stumbling on the same problem (I wanted to publish test results in JUnit format), I ended up finding the JUnitTestLogger NuGet package.
It was a matter of installing it:
dotnet add package JUnitTestLogger --version 1.1.0
And then running the tests as:
dotnet test --logger "junit;LogFilePath=path/to/your/test/results.xml"