I have the following setup for Visual Studio 2012 Update 2 NUnit Test Beta 4 NUnit 2.62
I mark a test with one of the following Category attributes from NUnit or TestCategory from MSTest:
[Category("WebServer")] public void FooTest() {
In the TFS build template, I set the property
- Basic → 1. Test source → Filter test cases for value: TestCategory! = WebServer
When the assembly performs NO TESTS. Filter removal and all tests run again.
Exit build log
There is no test in C: \ Builds \ 2 \ Proj \ Build \ bin \ Debug \ Tests.Integration.dll C: \ Builds \ 2 \ Proj \ Build \ bin \ Debug \ Tests.Unit.dll C: \ Builds \ 2 \ Proj \ Build \ bin \ Debug \ Tests.Web.dll C: \ Builds \ 2 \ Proj \ Build \ bin \ Debug \ TestStack.BDDfy.dll. Verify that the installed testers and implementers, platform settings, and platform versions are appropriate and try again.
Any hints, how can I get a test to exclude a database by category name? I can easily check if the attribute works if I use a runner for the NUnit console.
source share