Re: Trouble with attached Tests

2011-05-30 Thread Christopher Meyer
Thanks for your quick responses! I tried Karl Heinz solution and it worked for me. Actually i extend an abstract class containing all my tests which are packed as a jar. The jar is added as dependency to my pom.xml. This works perfect! Thanks again for your help guys! Regards from Bochum, German

Re: Trouble with attached Tests

2011-05-28 Thread Stephen Connolly
or use dependency:unpack-dependencies to put all the test classes in target/test classes there is an example of how to do this in the plexus utils commons bridge project in the maven sandbox in svn (search the dev list for the past week and you should see some threads with the url... I'm on a phone

Re: Trouble with attached Tests

2011-05-28 Thread Karl Heinz Marbaise
Hi, I thought that the following additions to the project's pom.xml (which should use the jar) would cause the test files included in the jar to run. You can reuse the classes within file (test-jar) but the tests inside this jar will NOT run, cause neither surefire-plugin nor failsafe-plugin a

Trouble with attached Tests

2011-05-27 Thread Christopher Meyer
Hi users list, Can someone help me with an unit testing issue? I'm trying to reuse tests from another project and created a jar as described in http://maven.apache.org/guides/mini/guide-attached-tests.html. I installed the jar and everything is fine to this point... I thought that the following

Attached Tests

2010-05-07 Thread Adrian C
Hi, I am trying to run some tests that are already build as a jar as part of our integration testing with the surefile plugin. I have followed the guide on attached tests: http://maven.apache.org/guides/mini/guide-attached-tests.html However, my tests are not run. If I extract the jar to /test

Re: Missing dependency on attached tests when -Dmaven.test.skip=true

2010-01-14 Thread Andreas Sewe
"maven.test.skip.exec", not "maven.skip.test.exec". Once that is fixed (or when using "skipTests", as Dan suggested) everything builds just fine; the attached tests are installed and found as dependency (even if they are never used). The only unfortunate thing is that M2Ecli

Re: Missing dependency on attached tests when -Dmaven.test.skip=true

2010-01-13 Thread Dan Tran
mvn install -DskipTests=true may work too On Wed, Jan 13, 2010 at 11:37 PM, Jörg Schaible wrote: > Hi Andreas, > > Andreas Sewe wrote at Mittwoch, 13. Januar 2010 17:12: > >> Hi all, >> >> I have three Maven projects example:A:1.0, example:B:1.0, and >> example:C:1.0. The former aggregates the tw

Re: Missing dependency on attached tests when -Dmaven.test.skip=true

2010-01-13 Thread Jörg Schaible
Hi Andreas, Andreas Sewe wrote at Mittwoch, 13. Januar 2010 17:12: > Hi all, > > I have three Maven projects example:A:1.0, example:B:1.0, and > example:C:1.0. The former aggregates the two latter projects. > > Now project example:B:1.0 attaches a test-jar to is primary artifact (as > per

Missing dependency on attached tests when -Dmaven.test.skip=true

2010-01-13 Thread Andreas Sewe
Hi all, I have three Maven projects example:A:1.0, example:B:1.0, and example:C:1.0. The former aggregates the two latter projects. Now project example:B:1.0 attaches a test-jar to is primary artifact (as per ). Project C has a

Re: attached tests dependency error

2007-09-25 Thread Tim Kettler
: Hi Tim, totally out of scope, but i am curious. what is this type identifier for in dependency? and why is it resolved as period in the artifact? Saleem Tim Kettler wrote: zalym schrieb: I followed the attached tests guide to create a dependency to my core tests. The first part of the t

Re: attached tests dependency error

2007-09-24 Thread zalym
a > [3] > https://svn.apache.org/repos/asf/maven/components/branches/maven-2.0.x/maven-artifact/src/main/resources/META-INF/plexus/components.xml > [4] > https://svn.apache.org/repos/asf/maven/components/branches/maven-2.0.x/maven-artifact/src/main/java/org/apache/maven/artifact/handle

Re: attached tests dependency error

2007-09-24 Thread Wayne Fay
anager.java > [3] > https://svn.apache.org/repos/asf/maven/components/branches/maven-2.0.x/maven-artifact/src/main/resources/META-INF/plexus/components.xml > [4] > https://svn.apache.org/repos/asf/maven/components/branches/maven-2.0.x/maven-artifact/src/main/java/org/apache/maven/arti

Re: attached tests dependency error

2007-09-24 Thread Tim Kettler
ache/maven/artifact/handler/manager/DefaultArtifactHandlerManager.java zalym schrieb: Hi Tim, totally out of scope, but i am curious. what is this type identifier for in dependency? and why is it resolved as period in the artifact? Saleem Tim Kettler wrote: zalym schrieb: I followed the

Re: attached tests dependency error

2007-09-22 Thread zalym
Hi Tim, totally out of scope, but i am curious. what is this type identifier for in dependency? and why is it resolved as period in the artifact? Saleem Tim Kettler wrote: > > zalym schrieb: >> I followed the attached tests guide to create a dependency to my core >> te

Re: attached tests dependency error

2007-09-21 Thread zalym
Hi tim, Thanks for pointing it out. classifier works. I have created an issue in JIRA at http://jira.codehaus.org/browse/MNGSITE-26 Regards, Saleem -- View this message in context: http://www.nabble.com/attached-tests-dependency-error-tf4489648s177.html#a12829434 Sent from the Maven

Re: attached tests dependency error

2007-09-21 Thread Tim Kettler
zalym schrieb: I followed the attached tests guide to create a dependency to my core tests. The first part of the tutorial worked, and I could install a version of the test jar in the local repository as models-3.0-tests.jar. When I tried to add this as a dependency in another project, it came

attached tests dependency error

2007-09-20 Thread zalym
I followed the attached tests guide to create a dependency to my core tests. The first part of the tutorial worked, and I could install a version of the test jar in the local repository as models-3.0-tests.jar. When I tried to add this as a dependency in another project, it came up with a

Re: How to configure attached tests?

2006-07-08 Thread Arnaud Bailly
Paul Spencer <[EMAIL PROTECTED]> writes: > Arnaud, > >> > > I am not using a Suite class. Can you explain how to implement a > Suite class? TestSuite is a class of junit 3.8 that implements composite pattern for tests. Once again, I am not sure this is suitable for your use case but here is what

Re: How to configure attached tests?

2006-07-07 Thread Paul Spencer
Arnaud, Arnaud Bailly wrote: Paul Spencer <[EMAIL PROTECTED]> writes: Arnaud, 1) I have several test, 100+, and the number grows, so from a management perspective extending each abstract test in each implementation is not practical. Paul, Maybe I am becoming intrusive (or is it obstrusive ?

Re: How to configure attached tests?

2006-07-07 Thread Arnaud Bailly
Paul Spencer <[EMAIL PROTECTED]> writes: > Arnaud, > 1) I have several test, 100+, and the number grows, so from a > management perspective extending each abstract test in each > implementation is not practical. Paul, Maybe I am becoming intrusive (or is it obstrusive ? elusive ?) but this first

Re: How to configure attached tests?

2006-07-07 Thread Paul Spencer
public void testXXX() ... } class ImplemTest extends ITest { ImplemTest(String n) { super(n); setImplem(this); } ... } Your attached tests will not be considered for execution, which is ok. Regards, - To unsubscri

Re: How to configure attached tests?

2006-07-07 Thread Paul Spencer
public void testXXX() ... } class ImplemTest extends ITest { ImplemTest(String n) { super(n); setImplem(this); } ... } Your attached tests will not be considered for execution, which is ok. Regards, - To unsubscri

Re: How to configure attached tests?

2006-07-06 Thread Arnaud Bailly
ublic void testXXX() ... } class ImplemTest extends ITest { ImplemTest(String n) { super(n); setImplem(this); } ... } Your attached tests will not be considered for execution, which is ok. Regards, -- OQube < software engineering \

Re: How to configure attached tests?

2006-07-06 Thread Paul Spencer
test. By including the attached test in each implementation, then anytime an implementation is successfully built, by Continuum for example, you can me assured it also confirms to the interface. Paul Spencer Arnaud Bailly wrote: Paul Spencer <[EMAIL PROTECTED]> writes: Hello, I think that at

Re: How to configure attached tests?

2006-07-06 Thread Arnaud Bailly
Paul Spencer <[EMAIL PROTECTED]> writes: Hello, I think that attached tests are not meant to contain tests that will be run in another projects but test elements that are useful for reuse in other (sub)projects. For example, your can have artefactA that have some tests using some resourc

Re: How to configure attached tests?

2006-07-06 Thread Paul Spencer
Kenny, See below. Kenney Westerhof wrote: On Thu, 6 Jul 2006, Paul Spencer wrote: Hi, (Maven 2.0.4) I have configured my project to use an attached test per the "Guide to using attached tests", http://maven.apache.org/guides/mini/guide-attached-tests.html, but the attached tes

Re: How to configure attached tests?

2006-07-06 Thread Kenney Westerhof
On Thu, 6 Jul 2006, Paul Spencer wrote: Hi, > (Maven 2.0.4) > I have configured my project to use an attached test per the "Guide to > using attached tests", > http://maven.apache.org/guides/mini/guide-attached-tests.html, but the > attached tests are not running. You

How to configure attached tests?

2006-07-06 Thread Paul Spencer
(Maven 2.0.4) I have configured my project to use an attached test per the "Guide to using attached tests", http://maven.apache.org/guides/mini/guide-attached-tests.html, but the attached tests are not running. 1) I have verified the test class exist in test jar, foo-SNAPSHOT-test.jar

Using attached tests

2006-07-03 Thread Paul Spencer
(Maven 2.0.4) I have configured my project to use an attached test per the "Guide to using attached tests", http://maven.apache.org/guides/mini/guide-attached-tests.html, but the attached tests are not running. 1) I have verified the test class exist in test jar, foo-SNAPSHOT-test.