I am using Pipelines to build a .Net Core 2 application. My project is designed to have all MSTest unit tests in a different project...so My.Project.Tests.csproj. In my bitbucket-pipelines.yml file I run all unit tests across all projects using the following command:
ls *Tests*/*.csproj | xargs -L1 dotnet test "--logger:trx;LogFileName=test-results/results.xml"
While I can see the log results for the associated step, I am getting contradictory messages in the Build Teardown step:
Does Pipelines not support MSTest results? What am I expected to see here??
Bitbucket Pipelines parses xUnit / JUnit test formatted test results. First check that your tests are outputting the results in this format. Unfortunately, the format is not very strict. So we have to modifying our parser for specific build tools.
If this issue is still occurring, can you open a feature request with an example of the test output xml?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.