NUnit benchmarks with TFS 2013

I am trying to get TFS to execute my unit tests.

The project assembly name is Users.SystemTests.dll. It is located at ~ / source / Users.SystemTests / bin / debug. The solution file is located at ~ / source / Users.sln.

I have included the Nunit.VisualStudio.TestAdapter nuget package in my test build project.

enter image description here

The build results show that the tests are not running.

enter image description here

What am I missing? They work fine locally with the Resharper test runner, and I can also use nunit-console-x86.exe to run them.

Is it because I am building a solution file? Maybe the output location "AsConfigured?"

+3


source to share


2 answers


Ok, so I tracked it down myself. It was twofold. The first problem was that the TestAdapter was not outputting to the bin directory. The other part was the location of the output. Setting copy to local and then output location SingleFolder fixed the issue.



0


source


I really believe this is a bug in the tfs build. It works when you use SingleFolder or PerProject, but not AsConfigured. In the latter case, the test runner finds no test assemblies, and this is the same for NUnit and MSTest, so it is adapter independent.

The diagnostic log says:



Run VS Test Runner00:00:00
There were no matches for the search pattern C:\a\bin\**\*test*.dll
There were no matches for the search pattern C:\a\bin\**\*test*.appx

      

0


source







All Articles