On Wed, 2022-01-19 at 13:08 +0000, Carlo Jelmini wrote:
> Hi Robert,
> 
> > Well, it's probably much quicker if you use the Sling Starter.
> 
> Thanks to the pointer to Sling Starter. Looks interesting. I’ll
> definitively try to use it for manual tests instead of Quickstart.
> 
> While exploring the Sling documentation, I have found that Sling
> already provides support for PaxExam [0] with the
> org.apache.sling.testing.paxexam library [1].
> Are there any objections if I import this library in an Oak module to
> implement my Integration Tests?

(not from me, but as noted I'm not that active in Oak anymore)

> 
> > On that note, maybe Oak itself can be packaged as an OSGi
> > application
> > using the feature model and that can then be used as a basis for
> > integration tests.
> 
> I’m not familiar yet with the feature model and I’m not sure I
> understand what packaging Oak as an OSGi application entails in this
> context?

The feature model [2] allows you to describe an OSGi application:

- bundles
- configurations
- framework properties

etc in a standard format. What is being worked on in Sling is the basis
for the OSGi features specification.

Packaging Oak as a feature model application means listing the needed
bundles and configurations and launching it via the feature launcher.
It will be very similar to what is done in the Sling Starter, but
without a lot of the things available to Sling.

Whether that is actually useful for your particular scenario is another
discussion :-)

Thanks,
Robert

[2]:
https://sling.apache.org/documentation/development/feature-model.html

> 
> Thanks,
> 
> Carlo
> 
> [0]:
> https://sling.apache.org/documentation/development/testing-paxexam.html
> [1]: https://github.com/apache/sling-org-apache-sling-testing-paxexam
> 
> 
> 
> From: Robert Munteanu <[email protected]>
> Date: Tuesday, 18 January 2022 at 17:44
> To: [email protected] <[email protected]>
> Subject: Re: Oak-it-osgi module
> On Tue, 2022-01-18 at 16:38 +0000, Carlo Jelmini wrote:
> > Up until now, I have used AEM Quickstart to manually test Oak
> > changes, but the roundtrip is very slow, cumbersome, and
> > frustrating...
> 
> Well, it's probably much quicker if you use the Sling Starter.
> 
> On that note, maybe Oak itself can be packaged as an OSGi application
> using the feature model and that can then be used as a basis for
> integration tests.
> 
> That, of course, means that ITs will need to run from outside the
> application, but on the other hand a proper project setup will
> eliminate many runtime errors, like unsatisfied imports or missing
> components.
> 
> Thanks,
> Robert
> 
> [1]:
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fsling-org-apache-sling-starter&amp;data=04%7C01%7Cjelmini%40adobe.com%7C30f2c130a7e04035576708d9daa1bded%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637781210483210866%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=KamBGKCeJxbK9uVloOxoFIwqp3WynYn5TzdkrPfm5jI%3D&amp;reserved=0

Reply via email to