Take a look at ops4j pax-exam it'll give everything you want for integration testing. AFAIK the felix project also uses it and they found a way of using cobertura for code-coverage testing also :)
regards, Achim 2013/9/16 Roland <[email protected]> > Hello Felix/OSGi-experts. > > First I wrote some JUnit testcases for a UUT-bundle and a test suite > exported by a tester-bundle using the maven-junit4osgi-plugin. After that, > I > deployed all bundles to a testcontainer (felix) in the > 'pre-integration-test' phase by using the maven-dependency-plugin. Third, I > run the junit tests in the gogo-console after the build. This works so far. > This kind of testing has some drawbacks: 1. It uses the surefire plugin and > I can not switch to an other plugin, 2. I have to run it manually. > > Is there a way to start the integration-tests automatically during the > lifecyle phase 'integration-test' instead of running them from > gogo-console? > (First idea: deploy bundles to the autodeploy folder, start testcontainer > and autostart junit tests). > > My second Idea (This is what I prefer): > Use the cobertura-it-maven-plugin (cobertura plugin that calls testcases > during integration-test phase). A first try failed. > > What else can I do? Are there any experiences to this topic? > > Thanks and regards > Roland > > What else can I do without using the surefire plugin. > > > > -- > View this message in context: > http://apache-felix.18485.x6.nabble.com/Integration-Tests-during-maven-lifecycle-phase-integration-test-tp5005004.html > Sent from the Apache Felix - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home> Commiter & Project Lead blog <http://notizblog.nierbeck.de/>

