Coder Social home page Coder Social logo

Comments (13)

CharliePoole avatar CharliePoole commented on August 19, 2024

This could be a bug in

  1. The V2 driver
  2. The embedded V2 code that runs the tests.
  3. 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.

philipcarlsen avatar philipcarlsen commented on August 19, 2024

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.

CharliePoole avatar CharliePoole commented on August 19, 2024

@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.

philipcarlsen avatar philipcarlsen commented on August 19, 2024

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.

CharliePoole avatar CharliePoole commented on August 19, 2024

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.

philipcarlsen avatar philipcarlsen commented on August 19, 2024

Yes :-)

from nunit-v2-framework-driver.

CharliePoole avatar CharliePoole commented on August 19, 2024

I invited you as a contributor so you can be assigned the issue.

from nunit-v2-framework-driver.

philipcarlsen avatar philipcarlsen commented on August 19, 2024

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.

ChrisMaddock avatar ChrisMaddock commented on August 19, 2024

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.

rprouse avatar rprouse commented on August 19, 2024

@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.

CharliePoole avatar CharliePoole commented on August 19, 2024

@ChrisMaddock Maybe being invited is sufficient for that purpose!

from nunit-v2-framework-driver.

philipcarlsen avatar philipcarlsen commented on August 19, 2024

Visiting the nunit-organisation github page did the trick :-)

from nunit-v2-framework-driver.

CharliePoole avatar CharliePoole commented on August 19, 2024

Fixed in PR #8

from nunit-v2-framework-driver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.