The Tycho plugin for Maven is able to execute Eclipse RCP test bundles within an OSGi environment.
Maven projects typically have separate test source directories in the same project. The Eclipse convention, however, is to have a separate test bundle (often a fragment of the host/target plugin with the suffix ".tests"). Tycho introduces a new eclipse-test-plugin packaging type to represent such projects. Build behavior is like regular Eclipse plugins, but these are treated specially at test-time.
The packaging type specified in the pom.xml
of a test fragment should be eclipse-test-plugin
, and the tycho-surefire-plugin
will run them in the integration-test
phase of the build.