logo       

RE: Merging multiple Junit test results: msg#00110

java.cruise-control.user

Subject: RE: Merging multiple Junit test results


>> I've also seen that I cannot share a single directory for
>> test results for multiple builds as Junit seems incapable
>> of merging new results with an existing result set from
>> another build.
...
>> Does anyone have any ideas how I can:
>> 1/ have a single directory to merge into for unit test results ...

As long as the tests (or test suites) have different names they should be
able to coexist in the same directory w/out a problem. I've done this on
multiple projects w/out a problem.

>> OR 2/ merge multiple directories into the CC logs without
>> specifying individually each directory.

You might add a "recurse directories" flag on the MergeLogger that defaults
to "false". Then you could do something like:

../junit_output
/project1output
/project2output
...

and specify the root dir as the ../junit_output directory.

Jtf

-----Original Message-----
From: cruisecontrol-user-admin@xxxxxxxxxxxxxxxxxxxxx
[mailto:cruisecontrol-user-admin@xxxxxxxxxxxxxxxxxxxxx] On Behalf Of Greg
Irvine
Sent: Monday, December 29, 2003 2:55 PM
To: cruisecontrol-user@xxxxxxxxxxxxxxxxxxxxx
Subject: [Cruisecontrol-user] Merging multiple Junit test results


Gday all.

I have a situation where I have many projects (a core application plus many
plugins). The entire "project" is built from a single script which in turn
calls the individual build scripts passing classpaths etc. This is the way I
enforce ordered building due to the various (non cyclic ;) ) dependencies of
the different projects.

However, I have a problem with merging the results of the Junit tests.

Ordinarily in the CC config I'd have a path to the logs and a merge with the
Junit tests' results.
<log dir="logs/tipp">
<merge dir="checkout/testresults"/>
</log>
However, I've seen that I had to specify each projects results directory to
have them merged into the results. I don't want to have to modify the config
file every time a new project is added as this is something that will be
happening quite regularly now.

I've also seen that I cannot share a single directory for test results for
multiple builds as Junit seems incapable of merging new results with an
existing result set from another build.

Does anyone have any ideas how I can:
1/ have a single directory to merge into for unit test results OR 2/ merge
multiple directories into the CC logs without specifying individually each
directory.


Thanks for any advice.

Regards,

- Greg



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Cruisecontrol-user mailing list Cruisecontrol-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise