Add Tests and publish your testresults

Download this project or setup a test for your own project. This is the same project as the webapp deployment.

Go to your build definition and add a Visual Studio Test who will run and publish your tests
For a unittest without the visualstudio test you can run a “Commandline” for running your tests and add the “Publish Test Result” which default supports formats from (JUnit, NUnit, XUnit)

Queue your build and watch the test results on the summary.