You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ralph Pöllath <li...@poellath.org> on 2005/03/02 17:42:31 UTC
Running integration tests
Hi,
In addition to my unit tests, I have some integration tests which I'd
like to be able to run separately (they require a database to be
available, etc).
What's the preferred way to do this with maven?
Thanks,
-Ralph.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Running integration tests
Posted by Ralph Pöllath <li...@poellath.org>.
I was hoping for something like this (which doesn't work BTW :-)
// maven.xml
<project xmlns:maven="jelly:maven">
<goal name="integration-test">
<maven:set plugin="maven-test-plugin" property="maven.test.src"
value="${basedir}/integration-test" />
<maven:set plugin="maven-test-plugin"
property="maven.test.dest"
value="${maven.build.dir}/integration-test-classes" />
<attainGoal name="test:test" />
</goal>
</project>
Any ideas?
Cheers,
-Ralph.
On 02.03.2005, at 19:02, dan tran wrote:
> Ralph,
>
> I would add another project to house your integration test cases.
> The source of the testcase must stay in the main source directory.
> (not the unit test src)
>
> After that, use jelly/java to drive your integration in maven.xml
>
> -D
>
> On Wed, 2 Mar 2005 17:42:31 +0100, Ralph Pöllath <li...@poellath.org>
> wrote:
>> Hi,
>>
>> In addition to my unit tests, I have some integration tests which I'd
>> like to be able to run separately (they require a database to be
>> available, etc).
>>
>> What's the preferred way to do this with maven?
>>
>> Thanks,
>> -Ralph.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Running integration tests
Posted by dan tran <da...@gmail.com>.
You integration project surely depends on the main project.
that is why when ever you make changes in main project
you must run jar:install to place its jar into local respository
and the integration to pickit up automatically.
Also, when ever you have to multiple projects collabrating together,
use maven-multiproject-plugin.
For your case
root
main
integration (depending on main)
What you mean "hardcoding the jars' location"?
It should be picked up automatically by the integration project.
-D
On Fri, 18 Mar 2005 12:47:37 +0100, Ralph Pöllath <li...@poellath.org> wrote:
> Thanks Dan.
>
> I set up a separate project as you suggested, which includes a
> dependency on the main project.
>
> This works fine, but it requires me to jar:install my main project each
> time I run the integration tests.
>
> So I'd like to make the integration tests a subproject and add a
> dependency on the parent project's jar. Is that possible without
> hardcoding the jar's location?
>
> Cheers,
> -Ralph.
>
> On 02.03.2005, at 19:02, dan tran wrote:
> > Ralph,
> >
> > I would add another project to house your integration test cases.
> > The source of the testcase must stay in the main source directory.
> > (not the unit test src)
> >
> > After that, use jelly/java to drive your integration in maven.xml
> >
> > -D
> >
> > On Wed, 2 Mar 2005 17:42:31 +0100, Ralph Pöllath <li...@poellath.org>
> > wrote:
> >> Hi,
> >>
> >> In addition to my unit tests, I have some integration tests which I'd
> >> like to be able to run separately (they require a database to be
> >> available, etc).
> >>
> >> What's the preferred way to do this with maven?
> >>
> >> Thanks,
> >> -Ralph.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Running integration tests
Posted by Ralph Pöllath <li...@poellath.org>.
Thanks Dan.
I set up a separate project as you suggested, which includes a
dependency on the main project.
This works fine, but it requires me to jar:install my main project each
time I run the integration tests.
So I'd like to make the integration tests a subproject and add a
dependency on the parent project's jar. Is that possible without
hardcoding the jar's location?
Cheers,
-Ralph.
On 02.03.2005, at 19:02, dan tran wrote:
> Ralph,
>
> I would add another project to house your integration test cases.
> The source of the testcase must stay in the main source directory.
> (not the unit test src)
>
> After that, use jelly/java to drive your integration in maven.xml
>
> -D
>
> On Wed, 2 Mar 2005 17:42:31 +0100, Ralph Pöllath <li...@poellath.org>
> wrote:
>> Hi,
>>
>> In addition to my unit tests, I have some integration tests which I'd
>> like to be able to run separately (they require a database to be
>> available, etc).
>>
>> What's the preferred way to do this with maven?
>>
>> Thanks,
>> -Ralph.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Running integration tests
Posted by dan tran <da...@gmail.com>.
Ralph,
I would add another project to house your integration test cases.
The source of the testcase must stay in the main source directory.
(not the unit test src)
After that, use jelly/java to drive your integration in maven.xml
-D
On Wed, 2 Mar 2005 17:42:31 +0100, Ralph Pöllath <li...@poellath.org> wrote:
> Hi,
>
> In addition to my unit tests, I have some integration tests which I'd
> like to be able to run separately (they require a database to be
> available, etc).
>
> What's the preferred way to do this with maven?
>
> Thanks,
> -Ralph.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org