4 ![testing goats](https://raw.github.com/cgoldberg/concurrencytest/master/testing-goats.png "testing goats")
6 Python testtools extension for running unittest suites concurrently.
12 pip install concurrencytest
19 * [testtools](https://pypi.python.org/pypi/testtools) : `pip install testtools`
20 * [python-subunit](https://pypi.python.org/pypi/python-subunit) : `pip install python-subunit`
30 from concurrencytest import ConcurrentTestSuite, fork_for_tests
33 class SampleTestCase(unittest.TestCase):
34 """Dummy tests that sleep for demo."""
49 # Load tests from SampleTestCase defined above
50 suite = unittest.TestLoader().loadTestsFromTestCase(SampleTestCase)
51 runner = unittest.TextTestRunner()
53 # Run tests sequentially
56 # Run same tests across 4 processes
57 suite = unittest.TestLoader().loadTestsFromTestCase(SampleTestCase)
58 concurrent_suite = ConcurrentTestSuite(suite, fork_for_tests(4))
59 runner.run(concurrent_suite)
65 ----------------------------------------------------------------------
70 ----------------------------------------------------------------------