I'm trying to achieve a "great" setup to easily be able to create integration 
tests for a sling-based framework by installing it into a Sling 13 as an extra 
feature and then running the integration tests, but sadly enough there are some 
hickups. I'm hoping that any of you guys would be able to help out or point out 
which features are lacking in Sling to achieve this.

What I achieved so far:

- Manually create the required feature files of the framework 
(https://github.com/orbinson/aem-groovy-console/blob/SLING-12437-demo-paul/it.tests/src/main/features/groovyconsole.json)
- Combine and attach this with the OOTB sling 13 osgi feature: 
https://github.com/orbinson/aem-groovy-console/blob/SLING-12437-demo-paul/it.tests/pom.xml#L76
- Launch the created aggregated feature: 
https://github.com/orbinson/aem-groovy-console/blob/SLING-12437-demo-paul/it.tests/pom.xml#L107
- Run integration tests against this application: 
https://github.com/orbinson/aem-groovy-console/blob/SLING-12437-demo-paul/it.tests/src/test/java/be/orbinson/aem/groovy/console/it/GroovyConsoleServiceIT.java#L47

But as mentioned, I'd like to go to a situation where I don't have to manually 
create the feature files, seeing as they could easily be generated from the 
already existing "all" package. It already contains the bundles, OSGi configs, 
content,...

What I'm strugging with to achieve this:

- The cp2fm is a cli and not a maven plugin, so I can't just easily execute it 
on my "all" package to convert it to a feature model file
- When trying to do it manually, it converts the "all" package to a feature 
model and adds the artifacts folder. The artifacts mentioned don't seem to 
match the maven pom coordinates anymore because they don't contain a pom inside 
the original jar
=> If I now want to use this, how can I tell the slingfeature-maven-plugin or 
the feature-launcher-maven-plugin to use the local generated maven repo for the 
artifacts and combine this with the artifacts coming from the sling 13 osgi 
feature to create and launch the aggregated feature

Any help in making this setup easier would be appreciated

Thanks!
Roy

Reply via email to