-
Notifications
You must be signed in to change notification settings - Fork 745
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breaking change in filter functionality between framework 2.7 and 3.11 #3231
Comments
This isn't entirely surprising, since the V2 test is run using the V2 framework driver extension as well as the V2 framework. IOW, an entirely separate code base for execution, even though you are using the same console version in both cases. I assume you are also using the 3.10 version of the V2 framework driver. Have you tried to use any earlier versions of the console + engine + extension? If not, we should do that to see if the error crept i recently or was there from the beginning. I think the latter is quite possible since this is a bit of a corner case. |
I tried to use nunit framework v3.0.5797 and console runner v3.0.5797,
with the same result.
Den man. 15. apr. 2019 kl. 16.57 skrev CharliePoole <
notifications@github.com>:
… This isn't entirely surprising, since the V2 test is run using the V2
framework driver extension as well as the V2 framework. IOW, an entirely
separate code base for execution, even though you are using the same
console version in both cases.
I assume you are also using the 3.10 version of the V2 framework driver.
Have you tried to use any earlier versions of the console + engine +
extension? If not, we should do that to see if the error crept i recently
or was there from the beginning. I think the latter is quite possible since
this is a bit of a corner case.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/nunit/nunit-console/issues/606#issuecomment-483287342>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AsoVBZ_QPVlbF3gUADZ67FP5FYmMUOufks5vhJNlgaJpZM4cv9r7>
.
|
Sounds like the problem has been there for a while then. Can you avoid that specific syntax as a workaround? |
This is probably a framework error, but someone should confirm before transferring it I think. |
Unfortunately, we have some tests running on framework 2.7 that need that specific type of filter. We have not found a workaround yet. |
You should be aware that That is, a top level not-filter isn't allowed to select an Explicit test. For non-explicit tests, the normal equivalence is intended to apply. |
Yes, we are aware of how this works for explicit tests, this behavior is very useful as we do not want to run explicit tests. |
Well, It also doesn't work if instead of Some.TopLevel.Namespace you fully qualify a test name. Edit: Since both |
Yes, I think we understand the problem you are seeing. I am only pointing out one small exception where Explicit is involved. Someone will need to verify that the generated filter is correct before possibly moving the issue to the framework repo. My guess is that it's a framework issue related to how top level not is handled. That could be tested by producing your expression with "test == junk ||..." |
I can confirm this bug. See build at https://ci.appveyor.com/project/CharliePoole/nunit-console/builds/24263259 In this branch I added tests to
I'm going to go ahead and prepare a PR to add the first tests, but not the second ones. We can't have those tests since they will fail unless we first update the framework. We can either leave them out entirely or comment them until the framework version used is updated. |
@nunit/engine-team I'm waiting for someone to confirm my view that this issue should be moved to the framework repo before doing it. See the above build. |
@CharliePoole I agree. |
Me to! |
We have a filter, --where="!(test != (something))" which returned the appropriate tests on nunit framework 2,7.0.0. On 3.11.0.0, it always returns an empty set of tests.
This behavior was observed using NUnit Console Runner 3.10.0.
I attached a small example solution containing a few tests using 2.7,0.0 and a copy of the tests using 3.11.0.0. I also attached the output from running the tests with the same filter.
nunit2example_1.zip

The text was updated successfully, but these errors were encountered: