Hi,

On Tue, 2022-01-18 at 15:04 +0000, Angela Schreiber wrote:
> Hi Carlo
> 
> In the various security related modules I used
> org.apache.sling.testing.osgi-mock to test the OSGi setup.
> I never used oak-it-osgi as a base for tests.
> 

In my understanding these are slightly different.

The OSGi-mock library helps write (unit/fast) tests that use
OSGi/Declarative Services components. A fully fledged OSGi framework
validates bundle package imports and requirements and also exposes
components to a less forgiving environment, so it's geared more towards
integration/end-to-end testing.

There is value in both, and OSGi-mock tests probably should IMO be the
majority.

But, of course, this requires someone to writes and maintains these
tests :-)

Thanks,
Robert

Reply via email to