commit 2024b5fa1bc355a12c3a93998e6ad1cc179fbfae Author: Eric Ayers Date: Sat Apr 16 09:17:42 2016 -0400 Adds the ability to run methods within a class in parallel during testing - Add a -parallel-methods flag to junit runner - Add a unit test The current model of parallel execution of tests parallelizes the running of classes. This change also allows methods within a test class to run in parallel by passing a -parallel-methods flag to the junit runner. A followon patch will add this capability into pants proper. I think we will add an option to test.junit, but we can also add an attribute of a junit_tests() target to allow controlling this value. I experimented with adding a @TestParallelMethods annotation, but it got complicated. This basic functionality seems to be working so I wanted to float it first. Testing Done: CI build at https://travis-ci.org/pantsbuild/pants/builds/123377420 Bugs closed: 3191, 3202 Reviewed at https://rbcommons.com/s/twitter/r/3696/ .../junit/impl/ConcurrentCompositeRequest.java | 6 +++-- .../junit/impl/ConcurrentRunnerScheduler.java | 28 ++++++++++++------- .../tools/junit/impl/ConsoleRunnerImpl.java | 31 ++++++++++++++++++---- 3 files changed, 49 insertions(+), 16 deletions(-)