maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brett Porter <brett.por...@gmail.com>
Subject Re: Unit test directory question
Date Mon, 01 Aug 2005 16:45:08 GMT
It picks up anything that ends in "Test". You can change this but
adding <excludes> (or changing the <includes>) in the <unitTest>
element inside <build>. See the project descriptor reference for more
info.

Cheers,
Brett

On 8/2/05, Aaron Colwell <acolwell@real.com> wrote:
> I'm looking at migrating my project over to using Maven, but I've run into a
> problem with how 'maven test' works. I have a directory tree with JUnit tests
> in it, but I also have helper classes in that tree that the tests use. These
> classes tend to be stub implementations of interfaces. It looks like Maven
> tries to execute these as unit tests. They fail of course because they aren't
> JUnit tests.
> 
> Is there a way to get maven to ignore these classes? What is the standard
> location for classes that are used only for unit testing, but aren't tests
> themselves?
> 
> Thanks,
> Aaron
> 
> ---------------------------------------------------------------------
> 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


Mime
View raw message