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?