We are starting a new .net core project and we are just setting up Bamboo to build our project and run the tests and so my question is:
Is there a way that we can use the xunit dotnet test CLi test runner to output in NUnit format?
Currently we have: "dotnet test -xml TestResults.xml" to run our tests which works great except we can't get the results in Bamboo.
Or does anyone have an alternative that would work for us?
For those interested, .NET Core SDK 2.0 not longer supports the -xml
option, but it does support --logger
which can be used to select specific output formats including MSTest (.trx), which is supported by Bamboo.
Example invocation:
dotnet test --logger "trx;LogFileName=abc.trx"
Note: abc.trx
can be a relative or absolute path, including ellipsis.
I have created a plugin for parsing xunit results in bamboo and published on the atlassian marketplace.
It should support v1, v2 and dotnet test outputs for xunit.
https://marketplace.atlassian.com/plugins/com.wwwlicious.xunit.xunit/server/overview
hope this helps.
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