This sample project illustrates how you could write OSGi tests in Groovy. It also provides a Maven Tycho configuration which builds the bundles and executes the tests.
$ git clone https://github.com/groovyosgi/testing.git
$ cd testing
$ mvn clean install
- Import the bundles and the test fragment via "File->Import->General->Existing Projects into Workspace".
- In order to execute the tests from Eclipse, execute
PizzaDeliveryManTest.launch
andPizzaServiceTest.launch
via "Run As".