Hey Rick,

All ProvisionOptions of Pax Exam are supported (such as the maven resolver)
[1]. All those files are copied into the deploy folder of your distribution.
The test framework (right now) expects that you've not changed this deploy
folder or it's configuration as it is given by Karaf.

If you remove the deploy folder in your distribution I can come up with a
workaround over the weekend [2]. If the deploy-folder-solution works fine
for you I'll fix LAB-70 by the end of next week.

Hope this helps.

Kind regards,
Andreas

[1] https://github.com/openengsb/labs-paxexam-karaf/wiki/Commands
[2] http://issues.openengsb.org/jira/browse/LAB-70

On Fri, Oct 7, 2011 at 16:25, Vestal, Rick <[email protected]> wrote:

> Hi,
>
> We are starting to convert our project over to osgi and are using the
> labs-paxexam testing mechanism.
>
> We have a custom karaf distribution (adds some bundles we need across our
> projects, logging, etc).  I'd like to build a test artifact along with our
> karaf distribution that contains testing utilities consuming projects can
> use such that they don't need to rewrite the initialization code if they
> don't want to.
>
> I think this will work ok for @Configuration methods as it is run locally
> and the standard maven depends mechanisms will pick up the classes just
> fine, however, if the actual @Test methods use any of these test utilities,
> then the classes are not available in the karaf distribution.
>
> Are there any recommended ways to get a jar of utilities into the karaf
> distribution when using labs-paxexam such that it is available from the test
> classes being executed?
>
> Thanks,
>
> -- Rick
>

Reply via email to