VSTS : dotnet with Docker fail to publish tests VSTS : dotnet with Docker fail to publish tests docker docker

VSTS : dotnet with Docker fail to publish tests


You should remove the RUN dotnet test in the Dockerfile as you are running the tests using the entrypoint option in compose file.If you have the RUN dotnet test and any test fails, the whole build will fail without generating any test result file.

If all your tests pass, then the "publish test results" tasks should succeed (but note that you run the tests twice).

Did you tried with a successful test suite?


You need to uncheck Run In Background option of Docker Compose task.

enter image description here