You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Gisbert Amm <gi...@webde.de> on 2006/10/12 17:13:27 UTC
[m2] Surefire-Plugin: how to get aggregated XML?
Hi,
in Maven1 the Junit Plugin wrote the test data aggregated into a file
named TESTS-TestSuites.xml. How can I achieve this with the Maven2
Surefire plugin?
-Gisbert
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] Surefire-Plugin: how to get aggregated XML?
Posted by Gisbert Amm <gi...@webde.de>.
If it would exist, I could open this *one* file to receive the JUnit
statistics instead of opening up to serveral *hundret* files (in large
projects with lots of tests) to collect the data this way, which seems
not the most performant thing to do.
The Surefire plugin could easily add up the errors and failures while it
runs and write the results to a file if a certain switch is turned on
(let's say "generateXml", e.g.) without significant lack of performance.
The Maven1 JUnit Plugin did so, at least.
-Gisbert
dvicente wrote:
> ok, i haven't understood.
>
> But why do you want this aggregated xml file ?
>
>
> Gisbert Amm-3 wrote:
>
>>That's not what I meant. The TEST-xxxx.yyy.xml files are there, indeed,
>>but no file with *aggregated* test results.
>>
>>Of course I can go through the single files and collect errors and
>>failures from there (that's what I actually do ATM). But the Surefire
>>plugin could do that much more efficent during it's execution and write
>>it to a neat XML file afterwards as it was in Maven 1.
>>
>>-Gisbert
>>
>>dvicente wrote:
>>
>>>i only know Maven 2 but in maven 2 surefire generates this xml.
>>>
>>>see in directory /myProject/target/surefire-reports, you must have
>>>TEST-xxxx.yyy.xml
>>>
>>>
>>>
>>>Gisbert Amm-3 wrote:
>>>
>>>
>>>>A week passed since I've posted this question and I got no reply so far.
>>>> Can anyone say something about it, please?
>>>>
>>>>-Gisbert
>>>>
>>>>Gisbert Amm wrote:
>>>>
>>>>
>>>>>Hi,
>>>>>
>>>>>in Maven1 the Junit Plugin wrote the test data aggregated into a file
>>>>>named TESTS-TestSuites.xml. How can I achieve this with the Maven2
>>>>>Surefire plugin?
>>>>>
>>>>>-Gisbert
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>>
>>>
>>>
>>--
>>Gisbert Amm
>>Softwareentwickler Infrastruktur
>>
>>WEB.DE GmbH
>>Brauerstraße 48 · D-76135 Karlsruhe
>>Tel. +49-721-91374-4224 · Fax +49-721-91374-2740
>>gisbert.amm@webde.de · http://www.web.de/
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>
>
--
Gisbert Amm
Softwareentwickler Infrastruktur
WEB.DE GmbH
Brauerstraße 48 · D-76135 Karlsruhe
Tel. +49-721-91374-4224 · Fax +49-721-91374-2740
gisbert.amm@webde.de · http://www.web.de/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] Surefire-Plugin: how to get aggregated XML?
Posted by dvicente <d....@consultant-artware.com>.
ok, i haven't understood.
But why do you want this aggregated xml file ?
Gisbert Amm-3 wrote:
>
> That's not what I meant. The TEST-xxxx.yyy.xml files are there, indeed,
> but no file with *aggregated* test results.
>
> Of course I can go through the single files and collect errors and
> failures from there (that's what I actually do ATM). But the Surefire
> plugin could do that much more efficent during it's execution and write
> it to a neat XML file afterwards as it was in Maven 1.
>
> -Gisbert
>
> dvicente wrote:
>> i only know Maven 2 but in maven 2 surefire generates this xml.
>>
>> see in directory /myProject/target/surefire-reports, you must have
>> TEST-xxxx.yyy.xml
>>
>>
>>
>> Gisbert Amm-3 wrote:
>>
>>>A week passed since I've posted this question and I got no reply so far.
>>> Can anyone say something about it, please?
>>>
>>>-Gisbert
>>>
>>>Gisbert Amm wrote:
>>>
>>>>Hi,
>>>>
>>>>in Maven1 the Junit Plugin wrote the test data aggregated into a file
>>>>named TESTS-TestSuites.xml. How can I achieve this with the Maven2
>>>>Surefire plugin?
>>>>
>>>>-Gisbert
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>>
>>
>>
>
> --
> Gisbert Amm
> Softwareentwickler Infrastruktur
>
> WEB.DE GmbH
> Brauerstraße 48 · D-76135 Karlsruhe
> Tel. +49-721-91374-4224 · Fax +49-721-91374-2740
> gisbert.amm@webde.de · http://www.web.de/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/-m2--Surefire-Plugin%3A-how-to-get-aggregated-XML--tf2430953.html#a6896130
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] Surefire-Plugin: how to get aggregated XML?
Posted by Gisbert Amm <gi...@webde.de>.
That's not what I meant. The TEST-xxxx.yyy.xml files are there, indeed,
but no file with *aggregated* test results.
Of course I can go through the single files and collect errors and
failures from there (that's what I actually do ATM). But the Surefire
plugin could do that much more efficent during it's execution and write
it to a neat XML file afterwards as it was in Maven 1.
-Gisbert
dvicente wrote:
> i only know Maven 2 but in maven 2 surefire generates this xml.
>
> see in directory /myProject/target/surefire-reports, you must have
> TEST-xxxx.yyy.xml
>
>
>
> Gisbert Amm-3 wrote:
>
>>A week passed since I've posted this question and I got no reply so far.
>> Can anyone say something about it, please?
>>
>>-Gisbert
>>
>>Gisbert Amm wrote:
>>
>>>Hi,
>>>
>>>in Maven1 the Junit Plugin wrote the test data aggregated into a file
>>>named TESTS-TestSuites.xml. How can I achieve this with the Maven2
>>>Surefire plugin?
>>>
>>>-Gisbert
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>
>
--
Gisbert Amm
Softwareentwickler Infrastruktur
WEB.DE GmbH
Brauerstraße 48 · D-76135 Karlsruhe
Tel. +49-721-91374-4224 · Fax +49-721-91374-2740
gisbert.amm@webde.de · http://www.web.de/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] Surefire-Plugin: how to get aggregated XML?
Posted by dvicente <d....@consultant-artware.com>.
i only know Maven 2 but in maven 2 surefire generates this xml.
see in directory /myProject/target/surefire-reports, you must have
TEST-xxxx.yyy.xml
Gisbert Amm-3 wrote:
>
> A week passed since I've posted this question and I got no reply so far.
> Can anyone say something about it, please?
>
> -Gisbert
>
> Gisbert Amm wrote:
>> Hi,
>>
>> in Maven1 the Junit Plugin wrote the test data aggregated into a file
>> named TESTS-TestSuites.xml. How can I achieve this with the Maven2
>> Surefire plugin?
>>
>> -Gisbert
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/-m2--Surefire-Plugin%3A-how-to-get-aggregated-XML--tf2430953.html#a6894432
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] Surefire-Plugin: how to get aggregated XML?
Posted by Gisbert Amm <gi...@webde.de>.
A week passed since I've posted this question and I got no reply so far.
Can anyone say something about it, please?
-Gisbert
Gisbert Amm wrote:
> Hi,
>
> in Maven1 the Junit Plugin wrote the test data aggregated into a file
> named TESTS-TestSuites.xml. How can I achieve this with the Maven2
> Surefire plugin?
>
> -Gisbert
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org