<p>At my work we are running a group of tests that consist of about 3,000 separate test cases. Previously we were running this entire test suite on one machine, which took about 24-72 hours to complete the entire test run. We now have created our own system for grouping and distributing the tests among about three separate machines and the tests are prioritized so that the core tests get run first for more immediate results and the extra tests run when there is an available machine.</p>

<p>I am curious if anyone has found a good way to distribute their tests among several machines to reduce total test time for a complete run and what tools were used to achieve that. I've done some research and it looks like TestNG is <a href="http://beust.com/weblog/archives/000362.html" rel="noreferrer">moving in this direction</a>, but it looks like it is still under quite a bit of development. </p>

<p>We don't plan on rewriting any of our tests, but as we add new tests and test new products or add-ons I'd like to be able to deal with the fact that we are working with very large numbers of tests. On the other hand, if we can find a tool that would help distribute our Junit <code>3.x</code> tests even in a very basic fashion, that <em>would</em> be helpful since we wouldn't have to maintain our own tooling to do that.</p>

[{'answer_id': 8226, 'author': 'GaryF', 'author_id': 1035, 'author_profile': 'https://Stackoverflow.com/users/1035', 'pm_score': 3, 'selected': True, 'text': '<p>I\'ve seen some people having a play with <a href="http://216.93.179.140:8080/wiki/display/GG15UG/Distributed+JUnit+Overview" rel="nofollow noreferrer">distributed JUnit</a>. I can\'t particularly vouch for how effective it is, but the other teams I\'ve seen seemed to think it was straight forward enough. Hope that helps.</p>\n'}, {'answer_id': 8274, 'author': 'Mark Harrison', 'author_id': 116, 'author_profile': 'https://Stackoverflow.com/users/116', 'pm_score': 1, 'selected': False, 'text': '<p>Our build people use Mozilla Tinderbox.  It seems to have some hooks for distributed testing.  I\'m sorry not to know the details but I thought I would at least pass on the pointer to you.</p>\n\n<p>It\'s also nice coz you can find out immediately when a build breaks, and what checkin might have been the culprit.</p>\n\n<p><a href="http://www.mozilla.org/tinderbox.html" rel="nofollow noreferrer">http://www.mozilla.org/tinderbox.html</a></p>\n'}, {'answer_id': 9408, 'author': 'Joshua McKinnon', 'author_id': 235, 'author_profile': 'https://Stackoverflow.com/users/235', 'pm_score': 1, 'selected': False, 'text': '<p>There\'s also <a href="https://parallel-junit.java.net/" rel="nofollow noreferrer">parallel-junit</a>. Depending on how you currently execute your tests its convenience may vary - the idea is just to multithread on a single system that has multiple cores. I\'ve played with it briefly, but it\'s a change from how we currently run our tests. </p>\n\n<p><a href="https://java.net/projects/hudson/" rel="nofollow noreferrer">Hudson</a>, the continuous integration engine I use, also has some ways to distribute test running (separate jobs aggregated results in one).</p>\n'}]
['https://Stackoverflow.com/questions/8219', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/782/']