Hi Paul, I hope you won't mind if I pick your brain a little more. I may be having an issue again with transitive dependencies.
I have now written a suite of tests using JUnit 4, Mockito (thanks for this tip! ...VERY happy with it) and Testify, it all works great in eclipse but the tests won't run from the command line using mvn test (surefire plugin). I suspect that Testify is sourcing in JUnit 3.8.1 and TestNG and trying to run my tests with those, and as I have no reference to either in my project I am guessing they come fro Testify... take a look at this debug output: [INFO] [surefire:test] [DEBUG] dummy:dummy:jar:1.0 (selected for null) [DEBUG] org.apache.maven.surefire:surefire-booter:jar:2.4.3:runtime (selected for runtime) [DEBUG] org.apache.maven.surefire:surefire-api:jar:2.4.3:runtime (selected for runtime) [DEBUG] Adding to surefire booter test classpath: /home/pstavrin/.m2/repository/org/apache/maven/surefire/surefire-booter/2.4.3/surefire-booter-2.4.3.jar [DEBUG] Adding to surefire booter test classpath: /home/pstavrin/.m2/repository/org/apache/maven/surefire/surefire-api/2.4.3/surefire-api-2.4.3.jar [DEBUG] dummy:dummy:jar:1.0 (selected for null) [DEBUG] org.testng:testng:jar:jdk15:5.8:test (selected for test) [DEBUG] junit:junit:jar:3.8.1:test (selected for test) [DEBUG] Adding to surefire booter test classpath: /home/pstavrin/.m2/repository/org/testng/testng/5.8/testng-5.8-jdk15.jar [DEBUG] Adding to surefire booter test classpath: /home/pstavrin/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar [DEBUG] dummy:dummy:jar:1.0 (selected for null) [DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire-providers::2.4.3 for project: null:surefire-testng:jar:null from the repository. [DEBUG] Adding managed dependencies for unknown:surefire-testng [DEBUG] org.apache.maven.surefire:surefire-api:jar:2.4.3 [DEBUG] org.apache.maven.surefire:surefire-booter:jar:2.4.3 [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.5.1 [DEBUG] org.apache.maven.surefire:surefire-testng:jar:2.4.3:test (selected for test) [DEBUG] junit:junit:jar:3.8.1:test (selected for test) [DEBUG] org.apache.maven.surefire:surefire-api:jar:2.4.3:test (selected for test) [DEBUG] org.apache.maven:maven-artifact:jar:2.0:test (selected for test) [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:test (selected for test) [DEBUG] org.testng:testng:jar:jdk15:5.7:test (selected for test) [DEBUG] Adding to surefire test classpath: /home/pstavrin/.m2/repository/org/apache/maven/surefire/surefire-testng/2.4.3/surefire-testng-2.4.3.jar [DEBUG] Adding to surefire test classpath: /home/pstavrin/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar [DEBUG] Adding to surefire test classpath: /home/pstavrin/.m2/repository/org/apache/maven/surefire/surefire-api/2.4.3/surefire-api-2.4.3.jar [DEBUG] Adding to surefire test classpath: /home/pstavrin/.m2/repository/org/apache/maven/maven-artifact/2.0/maven-artifact-2.0.jar [DEBUG] Adding to surefire test classpath: /home/pstavrin/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.jar [DEBUG] Test Classpath : Needless to say none of the tests will run as a result. How can I fix this, any idea? Thanks again for your help. Peter ----- Original Message ----- From: "P Stavrinides" <p.stavrini...@albourne.com> To: "Tapestry users" <users@tapestry.apache.org> Sent: Tuesday, 30 June, 2009 13:00:37 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: [Announce] Tapestry Testify project > The latest snapshot's POM should pull in tapestry-test for you > transitively. >The latest snapshot's POM should pull in tapestry-test for you >transitively. Great stuff, it seems to work, thanks Paul! ----- Original Message ----- From: "Paul Field" <paul.fi...@db.com> To: "Tapestry users" <users@tapestry.apache.org> Sent: Tuesday, 30 June, 2009 12:54:56 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: [Announce] Tapestry Testify project > > So, you need to add a dependency on the tapestry-test module (and I need > > to check what's going on in the Testify POM because you should've got that > > automatically... ). > Thanks Paul, up and running now! please keep me posted once you have > the pom sorted. The latest snapshot's POM should pull in tapestry-test for you transitively. I've also made a change so that the Testify module doesn't get automatically picked up by Tapestry - so this should prevent it wiring itself into a running application by accident. This should be a backward-compatible change that should make no difference to your tests. But if it does let me know :-) Paul --- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional EU corporate and regulatory disclosures. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org