Hi Lin,

I'mm talking about the itests (I assume this is short for "integration test"). As far as I understand, these need to run within an OSGi runtime. However, this runtime is created by the "pax-exam" tool which has a JUnit runner. As far as I can see, these tests are supposed to run as simple JUnit tests, since they are annotated with:

@RunWith(JUnit4TestRunner.class)

I have also noticed that they contained a static configuration method that should tell this "pax-exam" tool what type of container to instantiate and which bundles to install in it:

For example, BlueprintContainer2Test has:

    @org.ops4j.pax.exam.junit.Configuration
    public static Option[] configuration() {
        Option[] options = options(
...
        );
        options = updateOptions(options);
        return options;
    }

However, when I run the test, I get an exception from PAX that says:

"Could not resolve version. Did you configured the plugin in your maven project?Or maybe you did not run the maven build and you are using an IDE?"

Googling for this only turned the following up:

http://mail-archives.apache.org/mod_mbox/felix-users/201005.mbox/%[email protected]%3e

This leads me to believe that there is something that I must configure in Eclipse in order for things to work. Something that maven does before launching the tests. Any idea what it could be?

On 18/8/2010 18:54, Lin Sun wrote:
Hi,

Are you trying to run the itests from Eclipse or just the junit tests
from Eclipse?

I personally have never run the itests from Eclipse, but running junit
tests from Eclipse should be doable.

Lin

On Wed, Aug 18, 2010 at 11:38 AM, Alexandros Karypidis
<[email protected]>  wrote:
Hi,

I'm trying to run the integration tests from within Eclipse. I've never used
pax-exam before. As far as I can understand I need to configure pax-exam to
create an OSGi container in order to deply the test bundle. What kind of
launch configuration should I use in Eclispe to have the test run within an
Equinox instance? My workspace has all Aries modules in it, imported from an
"mvn eclipse:eclipse" after a successful build.

Thanks,
Alexander




Reply via email to