>>>>> Jean-Baptiste Onofré <j...@nanthrax.net>:

> Like this one:

> https://github.com/apache/karaf/blob/main/itests/test/src/test/java/org/apache/karaf/itests/DiagnosticTest.java

> For example, in this class we have several tests using a single Karaf
> instance (depending of the @ExamReactorStrategy(PerClass.class)
> annotation, PerClass meaning a single Karaf instance for all test
> methods in the class).

Nice! Can I add a feature repo and an extra feature to load easily on a
class basis?

I could do it with command line commands, I guess?

I.e. add
        executeCommand("feature:repo-add 
mvn:no.priv.bang.modeling.modelstore/modelstore.backend/LATEST/xml/features");
        executeCommand("feature:install modelstore.backend");
to all test methods?

(it shouldn't matter much if I did in each test...? It should be a no-op
if the feature is already loaded...?)

Reply via email to