{"id":41525,"date":"2023-12-01T05:39:21","date_gmt":"2023-12-01T05:39:21","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=41525"},"modified":"2023-12-01T05:39:33","modified_gmt":"2023-12-01T05:39:33","slug":"python-test-runners-unittest-parallel","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/python-test-runners-unittest-parallel\/","title":{"rendered":"Python Test Runners &#8211; unittest-parallel"},"content":{"rendered":"\n<p><span style=\"font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, Oxygen, Ubuntu, &quot;Fira Sans&quot;, &quot;Droid Sans&quot;, &quot;Helvetica Neue&quot;, sans-serif; font-size: 14px; white-space-collapse: collapse; color: rgb(55, 65, 81);\">Unittest, Python&#8217;s built-in testing framework, does not natively support parallel test execution. To achieve parallel test execution with unittest, you can use third-party libraries like\u00a0<\/span><code style=\"font-family: SFMono-Medium, &quot;SF Mono&quot;, &quot;Segoe UI Mono&quot;, &quot;Roboto Mono&quot;, &quot;Ubuntu Mono&quot;, Menlo, Courier, monospace; color: rgb(23, 43, 77); font-size: 14px; white-space-collapse: collapse; background-color: rgb(255, 255, 255);\">unittest-parallel<\/code><span style=\"font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, Oxygen, Ubuntu, &quot;Fira Sans&quot;, &quot;Droid Sans&quot;, &quot;Helvetica Neue&quot;, sans-serif; font-size: 14px; white-space-collapse: collapse; color: rgb(55, 65, 81);\">. Below is an example of how you can use\u00a0<\/span><code style=\"font-family: SFMono-Medium, &quot;SF Mono&quot;, &quot;Segoe UI Mono&quot;, &quot;Roboto Mono&quot;, &quot;Ubuntu Mono&quot;, Menlo, Courier, monospace; color: rgb(23, 43, 77); font-size: 14px; white-space-collapse: collapse; background-color: rgb(255, 255, 255);\">unittest-parallel<\/code><span style=\"font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Roboto, Oxygen, Ubuntu, &quot;Fira Sans&quot;, &quot;Droid Sans&quot;, &quot;Helvetica Neue&quot;, sans-serif; font-size: 14px; white-space-collapse: collapse; color: rgb(55, 65, 81);\">\u00a0to enable parallel execution of test cases with unittest.<\/span><\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/devops-school\/8f165edc9936f7dbec71f635f5453326.js\"><\/script>\n","protected":false},"excerpt":{"rendered":"<p>Unittest, Python&#8217;s built-in testing framework, does not natively support parallel test execution. To achieve parallel test execution with unittest, you can use third-party libraries like\u00a0unittest-parallel. Below is an example of how you can use\u00a0unittest-parallel\u00a0to enable parallel execution of test cases with unittest.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[2],"tags":[],"class_list":["post-41525","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/41525","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=41525"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/41525\/revisions"}],"predecessor-version":[{"id":41527,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/41525\/revisions\/41527"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=41525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=41525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=41525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}