We have a .NET Core 2.1 unit test project, which contains a battery of NUnit tests. We are using NUnit 3.10.1.
Unfortunately, NUnit Console does not yet support .NET Core projects. So the only way to run tests in Bamboo is to use the dotnet test
command:
dotnet test --logger "trx;LogFileName=testresults.trx"
So I tried doing that by running it as a command in the Bamboo build, and it does indeed run, but when it fails, it just says that the step failed, without specifying which tests caused it to fail.
I created a step to parse the test result file, but the build fails before reaching this step. So how should I set this up so that I can see the test results?
I've asked this question over on the community page at Atlassian, but I didn't get any useful responses.
I found a workaround. It doesn't feel 100% right, but it seems to do the trick. Any better solutions are welcomed!
dotnet test
command.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