[ 
http://issues.ops4j.org/browse/PAXEXAM-48?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12245#action_12245
 ] 

Toni Menzel commented on PAXEXAM-48:
------------------------------------

cool, thanks, james ! And appologize for not having that documented ;(

> allow the version of bundle/jars to be extracted from maven to avoid the test 
> cases having any version information
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: PAXEXAM-48
>                 URL: http://issues.ops4j.org/browse/PAXEXAM-48
>             Project: Pax Exam
>          Issue Type: Improvement
>          Components: DefaultTestContainer
>            Reporter: James Strachan
>            Assignee: Toni Menzel
>             Fix For: 0.5.0
>
>
> we went through a similar process on the ServiceMix Kernel project (soon 
> moving to Felix as a sub project called Karaf I think: 
> http://gnodet.blogspot.com/2009/04/apache-karaf.html
> e.g. see how this test only uses groupId/artefactIds
> http://svn.apache.org/repos/asf/servicemix/smx4/kernel/trunk/testing/itests/src/test/java/org/apache/servicemix/kernel/testing/itests/SimpleTest.java
> the code that implements this lives here:
> http://svn.apache.org/repos/asf/servicemix/smx4/kernel/trunk/testing/support/src/main/java/org/apache/servicemix/kernel/testing/support/AbstractIntegrationTest.java
> we basically look for a file called 
> *target/classes/META-INF/maven/dependencies.properties* which is generated by 
> a maven plugin containing a simple properties file of all the versions of all 
> the transitive dependencies on the current pom (to save messing about with 
> maven inside the integration tests).
> e.g. see the use of the plugin
> http://svn.apache.org/repos/asf/servicemix/smx4/kernel/trunk/testing/itests/pom.xml
> {code}
>             <!-- generate dependencies versions -->
>             <plugin>
>                 <groupId>org.apache.servicemix.tooling</groupId>
>                 <artifactId>depends-maven-plugin</artifactId>
>                 <executions>
>                     <execution>
>                         <id>generate-depends-file</id>
>                         <goals>
>                             <goal>generate-depends-file</goal>
>                         </goals>
>                     </execution>
>                 </executions>
>             </plugin>
> {code}
> Adding this feature would make it really handy; then you can write an 
> integration test once and it would inherit whatever the versions of your 
> dependencies from your pom.xml.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.ops4j.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to