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

Bug 314596

Summary: [JUnit] junit view can't correctly report the test result if executing a case many times in a test suite
Product: [Eclipse Project] JDT Reporter: Meng Xin Zhu <kane.zhu>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, kane.mx, markus.kell.r
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
screen shot of junit view none

Description Meng Xin Zhu CLA 2010-05-26 22:34:44 EDT
My program has some issues on multiple thread, so a test case intermittently failed in daily automation testing.
So I create a test suite and then add the same case in that suite many times to reproduce the failure.

Below is the code snippet to create the test suite,

@RunWith(Suite.class)
@SuiteClasses({
	BasicSetupLogTests.class,
	BasicSetupLogTests.class,
	...
	BasicSetupLogTests.class,
	BasicSetupLogTests.class})
public class SetuplogTestSuite {
//
}

After running the test suite, junit view can correctly report the test result for each case even if they are same.
Comment 1 Meng Xin Zhu CLA 2010-05-26 22:38:04 EDT
Created attachment 170130 [details]
screen shot of junit view

If some running of the case are failure, the junit view just reports the final result as failure. It can't tell me which one is failed and how many cases are failed. It can't report the stack of failure.
Comment 2 Dani Megert CLA 2010-05-27 03:30:05 EDT
Looks like a duplicate of bug 172256.
Comment 3 Markus Keller CLA 2010-05-27 10:53:44 EDT

*** This bug has been marked as a duplicate of bug 172256 ***