GithubHelp home page GithubHelp logo

Comments (5)

mickaelistria avatar mickaelistria commented on June 10, 2024

@laeubi This is a consequence of d9a5824 . This seems to highlight that the approach of tests in module but without having this module signed is not really usable together with signed bundles. Again, it seems to me that generating a test fragment, that would be signed, would work better.
The bundle in question is oddly configured though. i'll try to fix the bundle first.

from tycho.

laeubi avatar laeubi commented on June 10, 2024

So the new feature executes now tests that previously where ignored? I don't see how test fragment could hlep here as they do not apply here anyways.

from tycho.

mickaelistria avatar mickaelistria commented on June 10, 2024

So the new feature executes now tests that previously where ignored?

Yes, because the module was an eclipse-plugin and had the test attribute set in .classpath. But I think this is worth fixing this module first and I submitted https://git.eclipse.org/r/c/equinox/rt.equinox.p2/+/179816

I don't see how test fragment could hlep here as they do not apply here anyways.

It wouldn't help to fix this particular issue; it's just a reminder that tests that are not part of the same classloader as main artifact can fail in different ways because of classloading or class access restrictions; and that is something that works just fine with test-fragments. It's just IMO 1 more reason to have the story of the "tests in bundles" support to generate an explicit test fragment as it allows more reliable class access.

from tycho.

laeubi avatar laeubi commented on June 10, 2024

The it should either be a test-plugin or distinguish between Uinit and integration test with a proper filter. The "test-fragment" discussion really does not relate here and won't have changed anything.
Beside that I still don't see any benefit in supporting this, the whole classloader/acessrestriction thing simply has no meaning when defining a test class and only complicates the whole thing with no gain. In fact it even does not make sense for plain unit-test as there is no "OSGI-Runtime".

from tycho.

laeubi avatar laeubi commented on June 10, 2024

As the referenced bug is closed I think we can close this too, please reopen if you see any issue.

from tycho.

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.