Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 486129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T01:28:19+00:00 2026-05-13T01:28:19+00:00

We occasionally have bugs that appear once in every X runs. Before people check

  • 0

We occasionally have bugs that appear once in every X runs. Before people check in stuff (where it is automatically JUnit’d), our devs need to pass JUnit locally via Eclipse.

Is there some convenient way (built in or high-quality Plugin) to make Eclipse run the same test X times and stop if there’s a failure? An alternative to just clicking Run X times?

Note that I’m looking for something in the UI (e.g., right click and say “Run X times” instead of just “Run”).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T01:28:19+00:00Added an answer on May 13, 2026 at 1:28 am

    If the for loop works, then I agree with nos.

    If you need to repeat the entire setup-test-teardown, then you can use a TestSuite:

    1. Right-click on the package containing the test to repeat
    2. Go to New and choose to create a JUnit test SUITE
    3. Make sure that only the test you want to repeat is selected and click through to finish.
    4. Edit the file to run it multiple times.

    In the file you just find the

    addTestSuite(YourTestClass.class)
    

    line, and wrap that in a for loop.

    I’m pretty sure that you can use addTest instead of addTestSuite to get it to only run one test from that class if you just want to repeat a single test method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have occasionally heard or read about people asserting their interfaces in a unit
Like it or not, occasionally you have have to write tests for classes that
I have a class that occasionally gets passed null for File objects. During normal
I have a program that occasionally pops up on the screen and displays a
I have a particular method that is occasionally crashing with an ArgumentException: Destination array
Occasionally you meet bugs that are reproducible only in release builds and/or only on
Occasionally I'll have some WPF C# code that I'd like to write in a
I have a PhoneGap application that works fine but occasionally is known to have
I scrape some sites that occasionally have UTF-8 characters in the title, but that
I have a long-running script that seems to occasionally report the following NOTICE-level error:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.