How to set up continuous integration in Visual Studio Online using Git and Nunit

I set up a Visual Studio Online account and chose Git for version control. I use NUnit and Moq for my unit tests, and I have my own solution in Visual Studio 2013.

When CI launches tests it never starts, instead I get the following warning

"The test was not found. Make sure the installed testers and performers, the platform and platform settings, and try again."

I got a little lost here, I have no idea how to set up "testers and test executors", etc.

I tried to add nunit and moq as custom assemblies as described here . This did not work.

+4
source share
2 answers

As suggested by @klings, installing the NUnit Test Adapter for VS2012 and VS2013 of the NuGet package solved my problem.

NUnit adapter for VS2012 and VS2013

+2
source

You can take a look at this answer Visual Studio Online CI Nunit Tests not found during build

and also here http://walkingthestack.blogspot.gr/2013/04/using-nunit-for-your-tests-in-team.html

Basically, you need to provide tfs with the necessary DLLs (which should be obtained from the standard TFS repository, since git does not yet support this functionality)

0
source

Source: https://habr.com/ru/post/1535239/


All Articles