The Tuscany OSGi Junit plugin is derived from maven-surefire-plugin to add the OSGi support. It takes the same set of configurations as maven-surefire-plugin. Here is what it does:

1) Generate two bundles for the main and test classes respectively. The test bundle is a fragment of the main bundle.

For example, the plugin generates the following bundles for sample-calculator-osgi.jar:
* sample-calculator-osgi-osgi.jar
* sample-calculator-osgi-osgi-tests.jar

2) Find the EquinoxHost class from tuscany-node-launcher-equinox and create an instance
3) Start the equinox runtime
4) Set up the classloader for surefire so that it uses OSGi classloading for the test cases with the test bundle.
5) Delegate to surefire to run the unit tests

I'll update the readme.

As now we use the OSGi framework launch APIs to start an OSGi runtime, it should be ideal to allow either Equinox or Apache Felix as the runtime. The only difference would be a list of properties and we can make them configurable for the plugin to take a property file.

Thanks,
Raymond
--------------------------------------------------
From: "Mike Edwards" <[email protected]>
Sent: Thursday, October 29, 2009 12:49 PM
To: <[email protected]>
Subject: Re: [VOTE] Release Tuscany OSGi JUnit Maven Plugin RC1

ant elder wrote:
Please vote on releasing the Tuscany OSGi JUnit Plugin.

The Tuscany OSGi JUnit Plugin is used by the Tuscany SCA project to
do unit testing of the OSGi runtime environment. We need this release
so the SCA 2.0-M4 release can use the plugin without depending on a
snapshot build.

The tag for the release is:

https://svn.apache.org/repos/asf/tuscany/maven-plugins/tags/maven-osgi-junit-plugin-1.0/

the Maven staging repository is:

http://people.apache.org/~antelder/tuscany/maven-osgi-junit-plugin-1.0-RC1/

+1 from me.

   ...ant

Ant,

Is there any documentation of how to use this plugin?


Yours,

Mike.

Reply via email to