Comments (4)
I like this idea. And we can extend it in the future so that it can still use a bndrun file to setup the framework. I know here you are banking on the connect model, but I wouldn't preclude using a real framework.
I don't need/want any special resolving as I can manage a small set of test-pugins and I don't like to afford the extra time required for resolving
I don't really agree with that statement since resolving is probably the most important test you need to perform on an OSGi bundle but it's not a blocker for the idea of testing from surefire which I've been meaning to work on for ages, so thanks for taking the lead here 👍
from osgi-test.
Thanks @rotty3000 for the feedback andthe support, just want to make clear this obviously should not replace any resolving using BND, that will still be possible and maybe a bnd(run)-file would be an input also for a connect setup.
Also I don't want to say that a resolver is not important, but found for a (unit) test-setup it is often enough (especially if the project has a very limited OSGi scope) to simply have a small set of bundles (like 2 or 3) to have a rather closed-scoped test-context and much more manageable (you get what you declare, not more not less) and faster (than calculating this on each run) but still complete enough.
I'll prepare a PR for an initial implementation, and as you said we can easily build / enhance on top of it later on!
from osgi-test.
Jena is another usecase that recently dropped OSGi support as it become too cumbersome to maintain tests in a non-OSGi environment:
- https://issues.apache.org/jira/browse/JENA-2165
- https://lists.apache.org/thread/20h0djofj3h3dwtm728mcclv2zply9jt
- https://issues.apache.org/jira/browse/JENA-2343
from osgi-test.
As there are sadly no progress here I have now created a separate project:
https://github.com/laeubisoft/osgi-test-framework
let me know if there is any interest to migrate the code here to a more official place...
from osgi-test.
Related Issues (20)
- Add some descriptive documentation HOT 6
- osgi-test-example-mvn / org.osgi.test.example.player.test.PlayerTest are not executed HOT 4
- Need to obtain code coverage reports and interactive debugging within intellij and gradle plugin HOT 9
- Service instance are kept between different BundleContext's, Tests and test Classes HOT 4
- @ServiceSource should give a meaningfull error if no services are found HOT 3
- @ServiceSource should support ServiceAware<ServiceType> HOT 4
- readme link to codeql broken HOT 2
- NPE with @WithFactoryConfiguration HOT 15
- [cm] Support Systemproperties in Property HOT 4
- [cm] either create unbound config, or provide an option for it. HOT 3
- Weird behaviour when using `ConfigurationExtension` and standard config files HOT 10
- Provide a possibillity to inject and empty configuration where update has not been called yet HOT 11
- waitForRemoval and wait for modification Method for ServiceAware HOT 2
- use @With(Factory)Configuration in Annotations of User
- org.osgi.test.junit5.cm.test.ConfigAnnotationTest makes Tests lazy
- Move examples to Java 11? HOT 8
- Replacement in @WithFactoryConfigutation Properties and Factorys name
- Release 1.3.0 HOT 11
- Regression - WithConfiguration is no longer inherited
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 osgi-test.