You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mark Slater <li...@humanesoftware.com> on 2005/09/17 20:51:35 UTC

Maven 1.1 JUnit vs Integration tests

I'm using Maven 1.1 right now, and I'd like to separate my JUnit unit  
tests from my JUnit integration tests. The former test only a single  
class/layer of the app, while the latter test from the service layer  
to the database. I'm using Spring and JDO2, and the app is a web  
services app. I want to have one set of integration tests that are  
internal to the services (ie. Axis and Tomcat are not involved) and  
another that goes all the way from the web service to the db. But I  
don't want those test to run every time because they take far longer  
to run (minutes compared to seconds... for each test).

Is there a plugin that would let me do this? Or are there JUnit  
plugin properties that specify JUnit integration tests that don't use  
cactus (the properties I found ... maven.iutest.* seem to assume the  
use of a webapp to perform the tests)?

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven 1.1 JUnit vs Integration tests

Posted by Thomas Van de Velde <th...@accenture.com>.
You could create another project that holds only your integration tests.

Cheers,
Thomas

On 9/17/05, Mark Slater <ma...@analogsoftware.com> wrote:
> 
> Whoops, sorry. I'm using Maven 1.0.2 actually.
> 
> Mark
> 
> On Sep 17, 2005, at 11:51 AM, Mark Slater wrote:
> 
> > I'm using Maven 1.1 right now, and I'd like to separate my JUnit
> > unit tests from my JUnit integration tests. The former test only a
> > single class/layer of the app, while the latter test from the
> > service layer to the database. I'm using Spring and JDO2, and the
> > app is a web services app. I want to have one set of integration
> > tests that are internal to the services (ie. Axis and Tomcat are
> > not involved) and another that goes all the way from the web
> > service to the db. But I don't want those test to run every time
> > because they take far longer to run (minutes compared to seconds...
> > for each test).
> >
> > Is there a plugin that would let me do this? Or are there JUnit
> > plugin properties that specify JUnit integration tests that don't
> > use cactus (the properties I found ... maven.iutest.* seem to
> > assume the use of a webapp to perform the tests)?
> >
> > Mark
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

Re: Maven 1.1 JUnit vs Integration tests

Posted by Mark Slater <ma...@analogsoftware.com>.
Whoops, sorry. I'm using Maven 1.0.2 actually.

Mark

On Sep 17, 2005, at 11:51 AM, Mark Slater wrote:

> I'm using Maven 1.1 right now, and I'd like to separate my JUnit  
> unit tests from my JUnit integration tests. The former test only a  
> single class/layer of the app, while the latter test from the  
> service layer to the database. I'm using Spring and JDO2, and the  
> app is a web services app. I want to have one set of integration  
> tests that are internal to the services (ie. Axis and Tomcat are  
> not involved) and another that goes all the way from the web  
> service to the db. But I don't want those test to run every time  
> because they take far longer to run (minutes compared to seconds...  
> for each test).
>
> Is there a plugin that would let me do this? Or are there JUnit  
> plugin properties that specify JUnit integration tests that don't  
> use cactus (the properties I found ... maven.iutest.* seem to  
> assume the use of a webapp to perform the tests)?
>
> Mark
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org