maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrien Ruffié <adriennolar...@hotmail.fr>
Subject RE: Exclude unit test by parameter
Date Wed, 10 Dec 2014 07:14:29 GMT
Thank Robert, 
If I understand correctly, I only need to launch with 

mvn test –Dtest=!com.myapp.test1.*

right ?

-----Message d'origine-----
De : Robert Scholte [mailto:rfscholte@apache.org] 
Envoyé : mardi 9 décembre 2014 19:26
À : Maven Users List
Objet : Re: Exclude unit test by parameter

Please read
http://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#test

thanks,
Robert

ps I wonder why you thought the other would work or what/who gave you that hint.

Op Tue, 09 Dec 2014 16:01:11 +0100 schreef Adrien Ruffié
<adriennolarsen@hotmail.fr>:

> Hello all,
>
>
> I Have several test packages, for example com.myapp.test1, 
> com.myapp.test2,
> com.myapp.test3
>
> How I can exclude by parameter one package ? for example:
>
>
> mvn test –DskipTests=com.myapp.test1
>
> Or
>
> mvn test –Dtest.exclude=com.myapp.test2
>
>
> I have try both, and no success …
>
>
> Thank and best regards.
>
>
> Adrien Ruffié

---------------------------------------------------------------------
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