On Monday, July 22, 2019 10:14:45 PM CEST Jörg Hoh wrote:
> Hi,

Hi Jörg,

> I recently came across the IT tests of the Sling Event bundle [1], and my
> personal opinion is that having such a listing of bundles in the
> testclasses is hard to maintain.
> 
> From what I understand, the feature model is already able to collect a set
> of artifacts and start a process on top of that. This could be very helpful
> to define the environment in which integration testing could happen: I
> define an environment as feature-model, which is augmented with the bundle
> under test and the testcases, everything is started/deployed and the tests
> are running afterwards.
> 
> This should allow us to use "pre-packaged" environment definitions (e.g.
> "sling11-core") which we could use (and easily update) for these IT tests.
> 
> At the moment this is just an idea, and I do neither have the time nor the
> knowledge to implement that. But it would make the creation of integration
> tests with Sling much easier.
> 
> WDYT?

It's already implemented based on Sling's Karaf Features:

https://sling.apache.org/documentation/development/testing-paxexam.html

Regards,
O.

> Jörg
> 
> 
> 
> [1]
> https://github.com/apache/sling-org-apache-sling-event/blob/master/src/test/
> java/org/apache/sling/event/it/AbstractJobHandlingTest.java




Reply via email to