maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrien Rivard <adrien.riv...@gmail.com>
Subject Re: mvn test shall run all tests
Date Tue, 14 May 2013 07:56:45 GMT
See
http://maven.apache.org/surefire/maven-surefire-plugin/examples/inclusion-exclusion.html






On Tue, May 14, 2013 at 9:47 AM, Sven Bauhan <sven.bauhan@ast.dfs.de> wrote:

> Ah then it is the surefire plugin which is called.
>
> Ok then I just have to rename my classes.
>
> But is there also a documentation for this? I mean this naming convention
> and the configuration parameters in the pom.
>
> Thanks, Sven
>
>
> On 05/13/13 18:10, Stephen Connolly wrote:
>
>> Surefire only runs the tests from classes that follow Surefire's naming
>> convention, i.e. file must match one of the following regexs
>>
>> Test.*
>> .*Test
>> .*TestCase
>>
>>
>> On 13 May 2013 17:05, Sven Bauhan <sven.bauhan@ast.dfs.de> wrote:
>>
>>  Hi,
>>>
>>> I am new here with a question I could not a solution yet.
>>>
>>> I have about 6 test classes to run some JUnit tests. When I call "mvn
>>> test" only the test of one class is executed.
>>> On the command line I can instruct maven to all tests by "mvn -Dtest='.*'
>>> test". But I don't know how I can create a pom that this option is used
>>> by
>>> default.
>>>
>>> Can someone give me an example how to configure the test execution?
>>>
>>> Thanks, Sven
>>>
>>>
>>> ------------------------------****----------------------------**
>>> --**---------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.**apac**he.org<http://apache.org>
>>> <users-unsubscribe@**maven.apache.org<users-unsubscribe@maven.apache.org>
>>> >
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@maven.**apache.org<users-unsubscribe@maven.apache.org>
>
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
Adrien Rivard

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message