Hi Peter, That was my guess but I prefer to make sure it's not a "hidden feature" before starting to work on it... (like those component properties ;)).
I think the task is pretty simple in terms of feature, it's "just" writing a Maven surefire provider for the maven-bundle-plugin that just spawns a Bnd test task (similar to the ant bnd test task)... The test instructions can be passed in the <instructions> tag in the POM just like other Bnd instructions (or, improved version would map surefire configuration to bnd instructions). The more complex part is integrating all of that together (I don't know much about writing Maven plugins). Anyway, as I really need this quickly, I already started investigating and I'm going to do it and add the feature to the maven-bundle-plugin. If I can make it work, I'll submit a patch. Cheers, Simon On Tue, Jan 18, 2011 at 2:00 PM, Peter Kriens <[email protected]>wrote: > The maven plugin is just used for packaging so I do not think there is much > support for testing a la bnd. In ant it is quite easy though. > > I guess someone needs to write a maven plugin for this ... > > Kind regards, > > Peter Kriens > > On 14 jan 2011, at 17:51, Simon wrote: > > > Hello, > > > > I'm recently switched to maven-bundle-plugin to build a project, and I > > started porting my integration tests (multi-bundles) to use BND Testing > > Harness (I like its simplicity and it's integrated into Eclipse with > > BNDTools). > > > > Now, I'm trying to get my tests running using Maven (which we're using > for > > the "production" build), ideally using mvn integration-test or mvn test. > > > > Bnd already finds the bundles using its MavenRepository plugin, so I > believe > > I could have all the Bnd instructions to launch the test in the POM... > But > > how should I execute the tests? The doc doesn't say much about that. As > far > > as I can see, that's only missing step, since the POM can pass to Bnd the > > list of runbundles (that can be retrieved from the local Maven > repository), > > the testsuites, etc. > > > > Is there a test target in the Maven Bundle Plugin allowing me to just run > > them (and ideally as a Surefire provider)? If there isn't, does anyone > else > > believe it would make sense? > > > > Cheers, > > > > Simon Chemouil > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >

