As suggested by @klings, installing the NUnit Test Adapter for VS2012 and VS2013 NuGet package solved my problem.
How to setup Continuous Integration in Visual Studio Online with Git and Nunit
-
28-06-2023 - |
Вопрос
I've setup a Visual Studio Online account and chose Git for source control. I'm using NUnit and Moq for my Unit tests and I have my solution in Visual Studio 2013.
When CI kicks in the tests never run, instead I get the following warning
"No test found. Make sure that installed test discoverers & executors, platform & framework version settings are appropriate and try again."
I'm a bit lost here, I have no idea how to setup the "test discoverers & executors" etc.
What I did try was to add nunit and moq as custom assemblies as described here. That did not work.
Решение
Другие советы
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 have to be fetched from a standard TFS repository since git does not support such functionality yet)