Open k15tfu opened 2 years ago
Summary of how filtering works...
where
argument and creates a string representing your filter.Note that item 4 implies that the filter is evaluated by the platform under which you tests are run. I'm not sure if all platforms support negative lookahead, so that will require checking.
Since no part of NUnit actually interprets the regex, there are two possibilities.
Figuring out which of the two applies will take some debugging.
@CharliePoole Thanks for the clarification, given that it works w/o SetUpFixture
, I guess it's not about negative lookahead support in the .NET class library. BTW I checked that on Windows under .NET Framework and on Linux using Mono.
I'm wondering if the filter is being used to exclude the setup fixture, which would also keep the test fixtures from running. I'll try to track it down further to determine if it gets sent properly to the framework. If it does, then I'll transfer this issue there.
Hi!
It turned out that
=~
operator with a negative lookahead doesn't filter test classes if SetUpFixture is used in this namespace:and run with:
but without this
MySetUpClass
fixture everything is fine and it runs the same set of tests as with, or
options.
NUnit Console 3.15.0 NUnit 3.13.3