Publish dotnet test VS Team Services build results

2016-12-13

For my pet project I am using the Visual Studio Team Services as my online CICD server.

I have been trying to show the results of my tests run for dotnet core project. For some reasons I was not able to use the standard VSTS task used to run and publish test results.

Simples solution was to use a default .NET Core step with Command test. You have to remember to add the argument for the output -xml path

run dotnet core test

Then I have used the Publish test Results, which do the all the work.

publish test result

To make my life easier I have added a new variable to store the test result path.

variable to remove error possiblity

Now I can see the test results in the summary of every build.

build summary.


Blog comments powered by Disqus