Pregunta

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.

¿Fue útil?

Solución

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

NUnit Test Adapter for VS2012 and VS2013

Otros consejos

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)

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top