Replies: 3 comments 12 replies
-
I think you can look to the osgi-test project for an OSGi recommended way to test OSGi code. If fact we use osgi-test in the OSGi TCKs. |
Beta Was this translation helpful? Give feedback.
-
I would vote raising this to an issue and to discuss this in the next spec call. |
Beta Was this translation helpful? Give feedback.
-
For example https://bnd.bndtools.org/chapters/310-testing.html already has some kind of "specification" of how test are run in a runtime see section "Testing With JUnit 5 - biz.aQute.tester.junit-platform":
|
Beta Was this translation helpful? Give feedback.
-
When talking to others, the most unclear part for people about OSGi often is:
Of course there are multiple ways and different levels and some approaches, but all of them lack one important part: There is no common specification / definition so I can't exchange them and there is no common base even many of them share similar concepts.
Here are some examples:
All of them has (in some way or the other) some way to identify test, fire up a framework, and then use a "test-provider" to execute the test-cases, but of course I can't just share one bundle used for bnd with one from pax or tycho or ...
I therefore think it would be good to have a very basic "Test-Bundle-Specification" that tools can leverage to give users a guidance how they should "shape" their test-bundles so they can be executed by compatible tools.
As a first start, I think these minimal definitions would give a good starting point for a first spec-draft that might be build upon then:
Test-Cases
header what seems suitable and flexible enough for a generic definitionTest-Provider-Capability
If that's done, it would be great to also define how a compliant test execution could/should work e.g.
TestExecutorService
where one can trigger tests?Beta Was this translation helpful? Give feedback.
All reactions