Comments (13)
This could be a bug in
- The V2 driver
- The embedded V2 code that runs the tests.
- The 2.6 framework
Since only item 1 is currently maintained, let's hope that's it.:-)
An easy test would be to try it under the 2.6.4 console using the --exclude option.
from nunit-v2-framework-driver.
I can verify that the 2.6.4 runner correctly abstains from running Explicit tests.
I wasn't aware that item 1. and item 2. was separate things. I thought only the V2 driver was involved in detecting and running tests.
I think I have enough to go on for looking into the V2 driver (though I have yet to setup a local development environment for NUnit), but I'm not so sure about the embedded test run code. Could you point out for me where to start looking? Or is it in your opinion likely that it will be apparent to me when I actually start debugging?
from nunit-v2-framework-driver.
@philipcarlsen That's very useful info.
The V2 driver contains code that references and uses assemblies from the NUnit 2.6.4 distribution, which are bundled with the extension. You won't find any source code for these assemblies in the extension.
Since these are the same assemblies distributed with NUnit 2.6.4, that lets us know that they are capable of handling Explicit tests correctly. It's a question of how the adapter is using them.
When a test is run, the XML representation of the filter to be used is passed to the driver The method CreateNUnit2TestFilter is used to translate it to a V2 NUnit.Core.TestFilter. We would want to check what filter is being created and passed to the core to use in running the tests.
from nunit-v2-framework-driver.
Okay. I think I've narrowed the problem down to the way that the v2-framework-driver constructs thet TestFilter (of nunit.core.interfaces) from XML, which uses "TestFilter.FromXML".
TestFilter.FromXML does not account for the toplevel-ness of not-filters, which just results in a NotFilter with toplevel=false, and the resulting NotFilter thus no longer denies explicit tests.
from nunit-v2-framework-driver.
I'm on my phone and not looking at the code but that makes sense. Did you plan to do a PR for this?
from nunit-v2-framework-driver.
Yes :-)
from nunit-v2-framework-driver.
I invited you as a contributor so you can be assigned the issue.
from nunit-v2-framework-driver.
That's great :-) However, I'm not sure if I need to do something to acknowledge the invite. I can't seem to find any indication of this in the github ui.
from nunit-v2-framework-driver.
I'm not sure of the rest of the process, but it looks like I can assign you the issue! 😄
from nunit-v2-framework-driver.
@philipcarlsen try going to https://github.com/nunit and see if you are prompted to accept the invitation to the contributors team. I checked and you are still pending.
from nunit-v2-framework-driver.
@ChrisMaddock Maybe being invited is sufficient for that purpose!
from nunit-v2-framework-driver.
Visiting the nunit-organisation github page did the trick :-)
from nunit-v2-framework-driver.
Fixed in PR #8
from nunit-v2-framework-driver.
Related Issues (20)
- How does this work? HOT 1
- Are v2 addins supported? HOT 2
- Remove nunit.v2.driver.addins? HOT 3
- Event Listener and Report output incorrect or nunit2 test runs HOT 10
- Integrate creation of chocolatey package into the build script
- Is it possible to use this driver along with NUnit.ConsoleRunner? HOT 1
- Explicitness of tests is ignored in the presence of a filter with adding multiple negated categories HOT 10
- Use NUnit V2 Core package rather than hard coded 2.6.4 binaries HOT 18
- Exploring tests with filter returns all tests HOT 9
- V2 Driver does not support id filters HOT 11
- Create a level of support statement HOT 1
- Publish 'dev' builds on MyGet HOT 2
- Run integration tests on packages HOT 1
- Name and Fullname are the same in V3 XML format HOT 4
- Automate GitHub Release Process HOT 1
- Change default branch from master to main HOT 1
- Standardize build scripts for extensions HOT 2
- Automate the GitHub release process HOT 1
- V2 Framework Driver not picked up HOT 1
- Standardize scripts across console and extension repos
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nunit-v2-framework-driver.