{"id":18944982,"url":"https://github.com/cgoldberg/concurrencytest","last_synced_at":"2025-04-05T16:03:19.076Z","repository":{"id":8811364,"uuid":"10508446","full_name":"cgoldberg/concurrencytest","owner":"cgoldberg","description":"Python testtools extension for running unittest suites concurrently.","archived":false,"fork":false,"pushed_at":"2025-03-16T21:34:12.000Z","size":83,"stargazers_count":56,"open_issues_count":4,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-29T15:02:44.894Z","etag":null,"topics":["concurrency","parallel","test","testing","testtools","unittest"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/concurrencytest","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cgoldberg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-06-05T17:26:53.000Z","updated_at":"2025-03-16T21:34:15.000Z","dependencies_parsed_at":"2024-06-18T21:33:25.616Z","dependency_job_id":"3603d28c-1ed7-4773-987f-220f5c0147d8","html_url":"https://github.com/cgoldberg/concurrencytest","commit_stats":{"total_commits":37,"total_committers":2,"mean_commits":18.5,"dds":0.05405405405405406,"last_synced_commit":"c807f3e1428ff91ad93f270306966bc6597f3adf"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cgoldberg%2Fconcurrencytest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cgoldberg%2Fconcurrencytest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cgoldberg%2Fconcurrencytest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cgoldberg%2Fconcurrencytest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cgoldberg","download_url":"https://codeload.github.com/cgoldberg/concurrencytest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247361593,"owners_count":20926641,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["concurrency","parallel","test","testing","testtools","unittest"],"created_at":"2024-11-08T13:00:34.690Z","updated_at":"2025-04-05T16:03:19.027Z","avatar_url":"https://github.com/cgoldberg.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"concurrencytest\n===============\n\n![testing goats](https://raw.github.com/cgoldberg/concurrencytest/master/testing-goats.png \"testing goats\")\n\nPython testtools extension for running unittest suites concurrently.\n\n----\n\nInstall from PyPI:\n```\npip install concurrencytest\n```\n\n----\n\nRequires:\n\n * [testtools](https://pypi.python.org/pypi/testtools) : `pip install testtools`\n * [python-subunit](https://pypi.python.org/pypi/python-subunit) : `pip install python-subunit`\n\n----\n\nExample:\n\n```python\nimport time\nimport unittest\n\nfrom concurrencytest import ConcurrentTestSuite, fork_for_tests\n\n\nclass SampleTestCase(unittest.TestCase):\n    \"\"\"Dummy tests that sleep for demo.\"\"\"\n\n    def test_me_1(self):\n        time.sleep(0.5)\n\n    def test_me_2(self):\n        time.sleep(0.5)\n\n    def test_me_3(self):\n        time.sleep(0.5)\n\n    def test_me_4(self):\n        time.sleep(0.5)\n\n\n# Load tests from SampleTestCase defined above\nsuite = unittest.TestLoader().loadTestsFromTestCase(SampleTestCase)\nrunner = unittest.TextTestRunner()\n\n# Run tests sequentially\nrunner.run(suite)\n\n# Run same tests across 4 processes\nsuite = unittest.TestLoader().loadTestsFromTestCase(SampleTestCase)\nconcurrent_suite = ConcurrentTestSuite(suite, fork_for_tests(4))\nrunner.run(concurrent_suite)\n```\nOutput:\n\n```\n....\n----------------------------------------------------------------------\nRan 4 tests in 2.003s\n\nOK\n....\n----------------------------------------------------------------------\nRan 4 tests in 0.504s\n\nOK\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcgoldberg%2Fconcurrencytest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcgoldberg%2Fconcurrencytest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcgoldberg%2Fconcurrencytest/lists"}