karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Caspar MacRae <ear...@gmail.com>
Subject Re: paxexam labs question
Date Wed, 18 Jan 2012 19:28:09 GMT
Not sure if this is available in the Karaf version, but in vanilla Pax Exam
you can do:

bundle("reference:file:" + org.ops4j.pax.exam.util.PathUtils.getBaseDir() +

This requires the manifest is in the correct place (i.e. the target/classes
directory is an unzipped mirror of the final bundle).

The only other option (AFAIK) is to move your integration test into a
separate module that's built after your bundle's module (personally I don't
like this as it moves the test away from its subject - though obviously
this is fine/necessary for end-to-end tests).

On 17 January 2012 21:12, Vestal, Rick <rick@vestalclan.org> wrote:

> Hi all,
> Finally back to some osgi work and was very happy to see ServiceMix 4.4.0
> out so that I can move to it and not lose the paxexam karaf test framework.
> I've got a question on how other users are testing their modules.
> Ideally, I'd like to have a set of integration tests live in the osgi
> bundle module that use the paxexam labs work.  The problem I'm running into
> is that the 'latest' version of my osgi bundle isn't what is provisioned as
> the provision option is picking up the last one installed into my local
> maven repository.
> Is there an option to make the provision call use the 'just packaged'
> bundle?
> Thanks,
> -- Rick

View raw message