You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by EJ Ciramella <ec...@upromise.com> on 2008/11/08 18:21:42 UTC

maven unit tests run twice

When I run "mvn install site", the unit tests run twice.
 
I've tried all different combinations of the things talked about here:
 
http://jira.codehaus.org/browse/SUREFIRE-257
 
But no matter what I do, they run twice - halp?!

RE: maven unit tests run twice

Posted by EJ Ciramella <ec...@upromise.com>.
This is really bad - right now it's only tacking on 4 - 7 minutes of
build time, what if the tests ran for 30 min?

I see that clover is having a similar problem - is anyone else running
into this and if so, how are they working around it?
 

-----Original Message-----
From: Karsten Ohme [mailto:widerstand@t-online.de] 
Sent: Sunday, November 09, 2008 4:52 PM
To: Maven Users List
Subject: Re: maven unit tests run twice

EJ Ciramella schrieb:
> When I run "mvn install site", the unit tests run twice.
>  
> I've tried all different combinations of the things talked about here:
>  
> http://jira.codehaus.org/browse/SUREFIRE-257
>  
> But no matter what I do, they run twice - halp?!
> 
The test is run the second time for generating the surefire report for
the site. Don't know why this is done.

---------------------------------------------------------------------
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: maven unit tests run twice

Posted by Karsten Ohme <wi...@t-online.de>.
EJ Ciramella schrieb:
> When I run "mvn install site", the unit tests run twice.
>  
> I've tried all different combinations of the things talked about here:
>  
> http://jira.codehaus.org/browse/SUREFIRE-257
>  
> But no matter what I do, they run twice - halp?!
> 
The test is run the second time for generating the surefire report for
the site. Don't know why this is done.

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


RE: maven unit tests run twice

Posted by "Orford, Ian" <Ia...@dkib.com>.
If your report settings include the surefire plugin and a coverage tool
(Cobertura for example), they will both run the tests. That's why they
get run twice for me.

Ian 

-----Original Message-----
From: bmathus@gmail.com [mailto:bmathus@gmail.com] On Behalf Of Baptiste
MATHUS
Sent: 08 November 2008 22:13
To: Maven Users List
Subject: Re: maven unit tests run twice

You should use report-only report.
Which version of maven-report-plugin are you using? Before 2.4,
report-only wasn't existing.

Cheers.

2008/11/8 EJ Ciramella <ec...@upromise.com>

> When I run "mvn install site", the unit tests run twice.
>
> I've tried all different combinations of the things talked about here:
>
> http://jira.codehaus.org/browse/SUREFIRE-257
>
> But no matter what I do, they run twice - halp?!
>



--
Baptiste <Batmat> MATHUS - http://batmat.net Sauvez un arbre, Mangez un
castor !


--
This e-mail is confidential and the information contained in it may be privileged.  It should not be read, copied or used by anyone other than the intended recipient.  If you have received it in error, please contact the sender immediately by telephoning +44 (0)20 7623 8000 or by return email, and delete the e-mail and do not disclose its contents to any person.  We believe, but do not warrant, that this e-mail and any attachments are virus free, but you must take full responsibility for virus checking.  Please refer to http://www.dresdnerkleinwort.com/disc/email/ and read our e-mail disclaimer statement and monitoring policy.

Dresdner Kleinwort is the trading name of the investment banking division of Dresdner Bank AG, and operates through Dresdner Bank AG, Dresdner Kleinwort Limited and their affiliated or associated companies. Dresdner Bank AG is a company incorporated in Germany with limited liability and registered in England (registered no. FC007638, place of business 30 Gresham Street, London EC2V 7PG), and is authorised by the German Federal Financial Supervisory Authority and authorised and subject to limited regulation by the Financial Services Authority ("FSA"). Details about the extent of our authorisation and regulation by the FSA are available from us on request.  Dresdner Kleinwort Limited is a company incorporated in England (registered no. 551334, registered office 30 Gresham Street, London EC2V 7PG), and is authorised and regulated by the FSA. 
--


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


Re: maven unit tests run twice

Posted by Baptiste MATHUS <ml...@batmat.net>.
You should use report-only report.
Which version of maven-report-plugin are you using? Before 2.4, report-only
wasn't existing.

Cheers.

2008/11/8 EJ Ciramella <ec...@upromise.com>

> When I run "mvn install site", the unit tests run twice.
>
> I've tried all different combinations of the things talked about here:
>
> http://jira.codehaus.org/browse/SUREFIRE-257
>
> But no matter what I do, they run twice - halp?!
>



-- 
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !