Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 328183

Summary: [build][hudson] group test results in junit view
Product: z_Archived Reporter: Thomas Ehrnhoefer <thomas.ehrnhoefer>
Component: MylynAssignee: Thomas Ehrnhoefer <thomas.ehrnhoefer>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: steffen.pingel, thomas.ehrnhoefer
Version: unspecifiedKeywords: contributed
Target Milestone: 0.7   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
patch v1
thomas.ehrnhoefer: review?
mylyn/context/zip
none
patch v2
steffen.pingel: iplog+, thomas.ehrnhoefer: review?
mylyn/context/zip none

Description Thomas Ehrnhoefer CLA 2010-10-19 17:39:45 EDT
On big test runs the junit results are one long spaghetti of test cases. Maybe one could add the test suite hierarchy level again to add readability.
Comment 1 Thomas Ehrnhoefer CLA 2010-10-19 18:03:22 EDT
Turns out they are grouped for a different hudson test build I just connected to. Will investigate further why some test results are not grouped...
Comment 2 Thomas Ehrnhoefer CLA 2010-10-19 19:21:36 EDT
Created attachment 181233 [details]
patch v1

Ok, it seems some test setups result in a flat hierarchy. Thus for those tests the Junit view will appear flat as well.
This is a tweak of the parsing to introduce the lost level of hierarchy. I am a bit uncertain how robust this will be. I tested it against a test build which appeard hierarchical before, and it still does after applying this patch. And the build I had problems with now also correctly has a test suites hierarchy.
Only information lost is each test suite duration (not for those tests which already had the hierarchy without the patch)

what are your thoughts?
Comment 3 Thomas Ehrnhoefer CLA 2010-10-19 19:21:38 EDT
Created attachment 181234 [details]
mylyn/context/zip
Comment 4 Steffen Pingel CLA 2010-10-19 20:24:21 EDT
Patch looks good to me, it's a much better presentation. I am not worried about the duration of the suites, we could calculate it by summing up the grouped cases but I don't think it's important.

Could you adjust the now broken test in JUnitResultGeneratorTest accordingly and add tests for the changes?
Comment 5 Thomas Ehrnhoefer CLA 2010-10-19 20:37:06 EDT
Created attachment 181240 [details]
patch v2

I guess not checking out the test plugin and thus not breaking any tests locally is not enough, eh?
Comment 6 Thomas Ehrnhoefer CLA 2010-10-19 20:37:07 EDT
Created attachment 181241 [details]
mylyn/context/zip
Comment 7 Steffen Pingel CLA 2010-10-20 01:41:27 EDT
Thanks! I have applied the patch.