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

Bug 368302

Summary: Run test multiple times
Product: z_Archived Reporter: Thom Hehl <thom>
Component: TPTPAssignee: Torsten Stolpmann <stolpmann>
Status: ASSIGNED --- QA Contact: Torsten Stolpmann <stolpmann>
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Thom Hehl CLA 2012-01-10 17:42:09 EST
Build Identifier: 

I sometimes have a junit test that fails every once in a while. I need to be able to run it multiple times to re-create the issue, then again when I'm done to make sure it is working properly.

I would like to have a feature added so that I can run a junit test some number of times, like 50.

Reproducible: Always
Comment 1 Torsten Stolpmann CLA 2012-01-11 10:45:47 EST
I think JUnit Theories/Assumptions, introduced with JUnit 4.4  might be something that helps you solve your problem within the framework itself (See http://junit.sourceforge.net/doc/ReleaseNotes4.4.html).

I think this would be a much cleaner solution here.

What do you think?

Torsten
Comment 2 Thom Hehl CLA 2012-01-11 19:01:05 EST
No, because, in my circumstance, the test should NEVER fail. The failure indicates some criteria that I don't have nailed down and need to fix, but I can't recreate consistently.

Then, once I've fixed it, it's hard to be certain it is fixed.