I just setup a new project (.net 4.6.2) using xUnit Tests. In order to get unit-testing in VSTS I added the visual-studio runner to the project (using nuget).
Now I'm wondering: how do I get XML-Reports of my testruns, so I can publish those results in VSTS?
Xunit logger can generate xml reports in the xunit v2 format (https://xunit.github.io/docs/format-xml-v2.html).
You can use Visual Studio Test task to run XUnit and it can publish the test result to VSTS.
Regarding Core xUnit test, you can generate the trx test result by specifying --configuration $(BuildConfiguration) --logger "trx"
arguments in .Net Core Test task and add Publish Test Results task to publish test result (Choose VSTest
in Test result format)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With