Filter category NUnit Test Adapter on TFSBuild

I wonder if it is possible to run NUnit categorized tests on TFSBuild (Visual Studio Online). I have installed NUnit Test Adapter With FF Framework NuGet v1.2 package . The tests run fine on the build server, but when I add a "test filter" (TestCategory = Unit) in the build definition, the tests don't run. I'm pretty sure my tests are configured using this Category ([Test, Category ("Unit")]) attribute.

My understanding was that the NUnit test adapter maps the TestCategory to a category as described in this MSDN blog post . The NUnit Visual Studio Test adapter's note also says:

Bug fixes: # 13 Category attribute not working with test case TFS filter

Anyone have any experience with this?

test case filter

+3


source to share


1 answer


When you have configured a "custom assembly versioning path" on your build controller and have the old NUnit.VisualStudio.TestAdapter.dll in that location, that DLL will take precedence over the NUnit.VisualStudio.TestAdapter.dll in your project.



I removed this old dll to work with the NuGet package and the TestCategory filter works fine now!

+1


source







All Articles