{"id":53,"date":"2022-08-17T19:05:03","date_gmt":"2022-08-17T19:05:03","guid":{"rendered":"https:\/\/blog.aviator.co\/?p=53"},"modified":"2025-09-25T13:48:57","modified_gmt":"2025-09-25T13:48:57","slug":"complete-guide-to-python-testing-frameworks","status":"publish","type":"post","link":"https:\/\/www.aviator.co\/blog\/complete-guide-to-python-testing-frameworks\/","title":{"rendered":"Complete Guide to python Testing Frameworks"},"content":{"rendered":"\n<figure class=\"wp-block-image aligncenter size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/blog.aviator.co\/wp-content\/uploads\/2022\/08\/guide-to-python-1-1024x768.jpeg\" alt=\"\" class=\"wp-image-67\" srcset=\"https:\/\/www.aviator.co\/blog\/wp-content\/uploads\/2022\/08\/guide-to-python-1-1024x768.jpeg 1024w, https:\/\/www.aviator.co\/blog\/wp-content\/uploads\/2022\/08\/guide-to-python-1-300x225.jpeg 300w, https:\/\/www.aviator.co\/blog\/wp-content\/uploads\/2022\/08\/guide-to-python-1-768x576.jpeg 768w, https:\/\/www.aviator.co\/blog\/wp-content\/uploads\/2022\/08\/guide-to-python-1.jpeg 1280w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>While sometimes tedious, testing is critical if you\u2019re at all interested in developing a robust and reasonably bug-free codebase that endures.<\/p>\n\n\n\n<p>In software testing, these are your options:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Unit testing<\/li>\n\n\n\n<li>End-to-end testing(e2e)<\/li>\n\n\n\n<li>Integration testing<\/li>\n<\/ul>\n\n\n\n<p><strong>Unit testing<\/strong> involves testing snippets of code, single functions, classes, utility functions, components, etc. Here, each function, component, class, etc. is tested independently and as a single unit. This is the most basic type of testing.<\/p>\n\n\n\n<p>In Python, we can test that a function works as expected.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>&gt;&gt;&gt; assert sum(&#91;5, 3, 6]) == 14, \"Should be 14\"<\/code><\/code><\/pre>\n\n\n\n<p>The above is an example of a unit test. The sum function is used to sum all the numbers in the list and returns the result. So, we are testing that the function works and returns the expected result. In the example above, we are testing that the sum of the numbers in the list is 14. If the return is not 14 then the test fails and we know that something is wrong with the sum function.<\/p>\n\n\n\n<p><strong>Integration testing<\/strong> involves testing the software modules, classes, and components of the software as a group. This integration testing is conducted after unit testing.<\/p>\n\n\n\n<p><strong>End-to-end testing<\/strong> is the most complex type of testing and tests the software as a group. This testing makes sure that the software is working as expected and runs from start to finish.<\/p>\n\n\n\n<p>Now, we can either run our tests manually or we can automate them. Manual testing is when we run our software to check the features and experiment using them. This is called <strong>exploratory testing<\/strong> and it&#8217;s a form of manual testing.<\/p>\n\n\n\n<p>Eventually, manual testing will become too boring for words and you\u2019ll want to automate things.&nbsp;<\/p>\n\n\n\n<p>Fortunately, there is software that can run our tests for us and return a pass\/fail. This is called <strong>automation testing<\/strong>.&nbsp;<\/p>\n\n\n\n<p>In Python, several testing frameworks are available to help us run our tests during development. These frameworks are very sophisticated, complex, and powerful. They give us the best experience in testing and make our work easier.<\/p>\n\n\n\n<p>We will talk about the different types of testing frameworks in Python below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/docs.aviator.co\/mergequeue\" target=\"_blank\" rel=\" noreferrer noopener\"><img decoding=\"async\" width=\"1024\" height=\"264\" src=\"https:\/\/www.aviator.co\/blog\/wp-content\/uploads\/2024\/04\/aviator-mergequeue-blog-documentation-cta-photo-min-1-1024x264.png\" alt=\"MergeQueue CTA\" class=\"wp-image-4921\" srcset=\"https:\/\/www.aviator.co\/blog\/wp-content\/uploads\/2024\/04\/aviator-mergequeue-blog-documentation-cta-photo-min-1-1024x264.png 1024w, https:\/\/www.aviator.co\/blog\/wp-content\/uploads\/2024\/04\/aviator-mergequeue-blog-documentation-cta-photo-min-1-300x77.png 300w, https:\/\/www.aviator.co\/blog\/wp-content\/uploads\/2024\/04\/aviator-mergequeue-blog-documentation-cta-photo-min-1-768x198.png 768w, https:\/\/www.aviator.co\/blog\/wp-content\/uploads\/2024\/04\/aviator-mergequeue-blog-documentation-cta-photo-min-1-1536x396.png 1536w, https:\/\/www.aviator.co\/blog\/wp-content\/uploads\/2024\/04\/aviator-mergequeue-blog-documentation-cta-photo-min-1.png 1940w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Robot<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Robot Framework is a generic open source automation framework. It can be used for test automation and robotic process automation (RPA).<\/li>\n<\/ul>\n\n\n\n<p><a target=\"_blank\" href=\"https:\/\/robotframework.org\/\" rel=\"noreferrer noopener\">Robot<\/a> is an open-source automation test framework that supports many languages apart from Python. It has an easy syntax, is easy to learn, and has a rich set of features that can be used to test any kind of software.<\/p>\n\n\n\n<p>Robot has also a rich set of plugins supported by developers around the world. These libraries can be used to test any kind of software. For example, we have the <a target=\"_blank\" href=\"https:\/\/robotframework.org\/SeleniumLibrary\/\" rel=\"noreferrer noopener\">SeleniumLibrary<\/a> which can be used to test web applications, also there is RESTinstance that can be used to test HTTP JSON APIs.<\/p>\n\n\n\n<p>To start using the Robot Framework, we need to install it.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&gt;&gt; pip install robotframework<\/code><\/pre>\n\n\n\n<p>We can verify that we have installed it by running the following command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&gt;&gt; robot --version\nRobot Framework 5.0 (Python 3.8.10 on linux)<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>PyTest<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The pytest framework makes it easy to write small, readable tests and can scale to support complex functional testing for applications and libraries.<\/li>\n<\/ul>\n\n\n\n<p><a target=\"_blank\" href=\"https:\/\/docs.pytest.org\/en\/7.1.x\/\" rel=\"noreferrer noopener\">pytest<\/a> is a mature Python testing framework that is also easy to learn and use. It is a good choice for writing small tests and for writing tests that are complex and require a lot of code. pytest supports unit testing, functional testing, and API testing.<\/p>\n\n\n\n<p>Currently, pytest is the most popular testing framework in the Python world. It runs on Python 3.7+ or PyPy3.<\/p>\n\n\n\n<p>The advantages of choosing pytest as your testing framework for your next Python project are that it is easy to use, offers simple test suites, has many plugins you can use for different work, and has large community support.<\/p>\n\n\n\n<p>pytest installation is quite simple.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&gt;&gt; pip install pytest<\/code><\/pre>\n\n\n\n<p>pytest will now be available in our environment.<\/p>\n\n\n\n<p>Now, let&#8217;s write a test.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import pytest\ndef test_1():\n    <span style=\"background-color: inherit; font-family: var(--fontFamily); font-size: var(--fontSize); font-style: var(--fontStyle, inherit); font-weight: var(--fontWeight); letter-spacing: var(--letterSpacing); text-transform: var(--textTransform);\">assert 6 + 1 == 7, \"test passed<\/span>\"\ndef test_2():\n    <span style=\"background-color: inherit; font-family: var(--fontFamily); font-size: var(--fontSize); font-style: var(--fontStyle, inherit); font-weight: var(--fontWeight); letter-spacing: var(--letterSpacing); text-transform: var(--textTransform);\">assert 6 + 1 !== 8, \"test passed\"<\/span><\/code><\/pre>\n\n\n\n<p>See how easy and simple it is to write a test in pytest? We just need to import the pytest library and write a test. The tests are methods. The first method, test_1 tests that 6 + 1 is 7. If the test passes, it will print test passed. The second method, test_2 tests that 6 + 1 is not 8. If the test passes, it will print test passed.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># test.py\ndef test_sum_14():\n    assert sum(&#91;5, 3, 6]) == 14, \"Should be 14\"\n\ndef test_sum_10():\n    assert sum(&#91;5, 5]) == 10, \"Should be 10\"\n\ndef test_sum_200():\n    assert sum(&#91;10, 10, 10, 170]) == 200, \"Should be 200\"<\/code><\/pre>\n\n\n\n<p>You see how pytest allows us to write neat and well-structured tests. The first test from the look of it we can assert that it is testing that the sum function returns 14. The second test is testing that the sum function returns 10. The third test is testing that the sum function returns 200.<\/p>\n\n\n\n<p>To run the test.py file, we will simply run the following command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&gt;&gt; pytest test.py<\/code><\/pre>\n\n\n\n<p>We can just run the pytest standalone at the root of our project and it will run all the tests.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Unittest<\/strong><\/h2>\n\n\n\n<p>unittest just as the name implies is a unit testing framework for the Python programming language that\u2019s a fork of JUnit in Java. It has a very simple syntax and is easy to learn.<\/p>\n\n\n\n<p>According to <a target=\"_blank\" href=\"https:\/\/docs.python.org\/3\/library\/unittest.html\" rel=\"noreferrer noopener\">unittest docs<\/a>, unittest supports test automation, sharing of setup and shutdown code for tests, aggregation of tests into collections, and independence of the tests from the reporting framework.<\/p>\n\n\n\n<p>unittest is by default the testing framework that is used in Python because it is baked into the Python distribution. So once you install Python, you will have unittest installed.<\/p>\n\n\n\n<p>Let&#8217;s see how we can write and run a simple test case in unittest.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># test.py\nimport unittest\n\nclass TestSum(unittest.TestCase):\n    def test_sum_14(self):\n        self.assertEqual(sum(&#91;5, 3, 6]), 14, \"Should be 14\")\n   def test_sum_200(self):\n        self.assertEqual(sum(&#91;100, 100])), 100, \"Should be 200\")\nif __name__ == '__main__':\n    unittest.main()<\/code><\/pre>\n\n\n\n<p>We start by importing unittest package. Next, we define a class TestSum. This class is used to define the test cases. The class name is TestSum and it should inherit from the unittest.TestCase class.<\/p>\n\n\n\n<p>The methods inside the class are called test cases. The first test case is test_sum_14. This test case asserts that the sum of the numbers in the list is 14. The second test case is test_sum_10. This test case asserts that the sum of the numbers in the list is 10. The third test case is test_sum_200. This test case asserts that the sum of the numbers in the list is 200.<\/p>\n\n\n\n<p>Finally, we run the tests by running the unittest standalone at the root of our project.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&gt;&gt; python test.py<\/code><\/pre>\n\n\n\n<p>By using the python executable, unlike other frameworks where we have to use the framework name. This is because unittest is baked inside python, so Python will understand that the test.py file is a test file and will run unittest on it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>DocTest<\/strong><\/h2>\n\n\n\n<p><a target=\"_blank\" href=\"https:\/\/docs.python.org\/3\/library\/doctest.html\" rel=\"noreferrer noopener\">DocTest<\/a> is another testing framework for Python. Just like unittest, it supports test automation, sharing of setup and shutdown code for tests, aggregation of tests into collections, and independence of the tests from the reporting framework. Also, it is integrated into the Python distribution. So we don&#8217;t need to install it.<\/p>\n\n\n\n<p>DocTest uses the white-box testing approach. It is a testing framework that is used to test the Python documentation. It is a good choice for writing tests for the Python documentation. According to the <a target=\"_blank\" href=\"https:\/\/docs.python.org\/3\/library\/doctest.html\" rel=\"noreferrer noopener\">doctests docs<\/a>, it works by searching for pieces of text that look like interactive Python sessions and then execute those sessions to verify that they work exactly as shown.<\/p>\n\n\n\n<p>Let&#8217;s see an example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># test.py\n\"\"\"\n&gt;&gt;&gt; test(5)\n500\n\"\"\"\n\ndef test(n):\n    \"\"\"Return the multiplication of 2 and 100\n    &gt;&gt;&gt; test(2)\n    200\n    \"\"\"\n    if n == 0:\n        raise ValueError(\"n must be &gt;= 0\")\n    if n &lt; 0:\n        raise ValueError(\"n must be &gt;= 0\")\n    else:\n        return n * 100\n\nif __name__ == \"__main__\":\n    import doctest\n    doctest.testmod()<\/code><\/pre>\n\n\n\n<p>Now, in the above code, we have a method, test. This method returns the multiplication of the number n by 100. If the number is 0, it will raise a ValueError. If the number is negative, it will raise a ValueError.<\/p>\n\n\n\n<p>See that we have the documentation in the test method and also the comments inside the test method. The first comment outside the method tests that the test method returns 500 when passed 5. Also, the comment inside the test method tests that the test method returns 200 when passed 2. Doctests will parse the comments and run the tests in the comments.<\/p>\n\n\n\n<p>Now, let&#8217;s run the test.py file.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&gt;&gt; python test.py\n&gt;&gt;<\/code><\/pre>\n\n\n\n<p>There is no output. Let&#8217;s run it again with a -v flag.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&gt;&gt; python test.py -v<\/code><\/pre>\n\n\n\n<p>Now, we will see the output.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Trying:\n  test(5)\nExpecting:\n  500\nok\nTrying:\n  test(2)\nExpecting:\n  200\nok<\/code><\/pre>\n\n\n\n<p>Neat!<\/p>\n\n\n\n<p>Doctest is magical <img decoding=\"async\" src=\"https:\/\/paper.dropboxstatic.com\/static\/img\/ace\/emoji\/1f601.png?version=7.0.0\" height=\"16\" alt=\"beaming face with smiling eyes\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Nose2<\/strong><\/h2>\n\n\n\n<p><a target=\"_blank\" href=\"https:\/\/docs.nose2.io\/en\/latest\/\" rel=\"noreferrer noopener\">Nose2<\/a> is a unit testing framework that can also run unittests and doctests. It is an extension of unittests.<\/p>\n\n\n\n<p>Let&#8217;s test our previous unittest test cases with nose2.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># test.py\nimport unittest\n\nclass TestSum(unittest.TestCase):\n    def test_sum_14(self):\n        self.assertEqual(sum(&#91;5, 3, 6]), 14, \"Should be 14\")<\/code><\/pre>\n\n\n\n<p>Now, we run it:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&gt;&gt; node2 test.py -v\ntest_sum_14 (test.TestSum) ... ok\n----------------------------------------------------------------------\nRan 1 test in 0.000s\nOK<\/code><\/pre>\n\n\n\n<p>Nose2 can actually run all tests in a Project. For more documentation, see <a target=\"_blank\" href=\"https:\/\/docs.nose2.io\/en\/latest\/\" rel=\"noreferrer noopener\">nose2 docs<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Testify<\/strong><\/h2>\n\n\n\n<p><a target=\"_blank\" href=\"https:\/\/github.com\/Yelp\/Testify\" rel=\"noreferrer noopener\">Testify<\/a> is an open-source testing framework for Python built by <a target=\"_blank\" href=\"https:\/\/yelp.com\/engineering\" rel=\"noreferrer noopener\">Yelp.com<\/a>. It is intended to replace Python&#8217;s built-in unittests and Nose.<\/p>\n\n\n\n<p>Testify has so many nice features ahead of unittests and Nodes. Testify outputs results in a colorful way, it is easy to read, it is easy to write, and it is easy to use.<\/p>\n\n\n\n<p>Testify is extensible, meaning that we can write plugins to add new features to Testify. It can also parse through folders much deeper than Nose to find and run tests. It has this class-level test case setup similar to unittests.<\/p>\n\n\n\n<p>Let&#8217;s see a test case in Testify:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from testify import *\nclass SumTestCase(TestCase):\n    def test(self):\n        assert_equal(sum(&#91;2, 0]), 2)\nif __name__ == \"__main__\":\n    run()<\/code><\/pre>\n\n\n\n<p>In the above code, first, we import the testify package. Then, we define a class SumTestCase. This class is used to define the test cases. The class name is SumTestCase and it should inherit from the TestCase class.<\/p>\n\n\n\n<p>Just like unittests, Testify has fixtures that we can use to add more functionality to our tests. For example, we can use the setup fixture to set up the environment before each test.&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>&nbsp;teardown fixture is used to clean up the environment after each test.&nbsp;<\/li>\n\n\n\n<li>&nbsp;setup_class fixture is used to set up the environment before all the tests in the class.&nbsp;<\/li>\n\n\n\n<li>&nbsp;teardown_class fixture is used to clean up the environment after all the tests in the class.<\/li>\n\n\n\n<li>&nbsp;setup_method fixture is used to set up the environment before each test in the method.&nbsp;<\/li>\n\n\n\n<li>&nbsp;teardown_method fixture is used to clean up the environment after each test in the method.&nbsp;<\/li>\n\n\n\n<li>&nbsp;setup_package fixture is used to set up the environment before all the tests in the package.&nbsp;<\/li>\n\n\n\n<li>&nbsp;teardown_package fixture is used to clean up the environment after all the tests in the package.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>TestProject<\/strong><\/h2>\n\n\n\n<p><a href=\"https:\/\/docs.testproject.io\/\" target=\"_blank\" rel=\"noreferrer noopener\">TestProject<\/a> is an automation testing framework. It is quite powerful and has lots of rich features. TestProject is also extensible, developers can write their addons to TestProject. Also, there is a marketplace for TestProject addons <strong>https:\/\/addons.testproject.io\/<\/strong>.<\/p>\n\n\n\n<p>TestProject can export the results of the tests to a variety of formats. It can export the results to a JSON file, a CSV file, an HTML file, an XML file, and a YAML file. It also offers a free test report in HTML\/PDF format. There is also access to the execution history of the tests, a built-in test runner, and huge developer and community support.<\/p>\n\n\n\n<p><strong>TestProject installation<\/strong><\/p>\n\n\n\n<p>We can install the TestProject package using the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip3 install testproject-python-sdk<\/code><\/pre>\n\n\n\n<p>Now, we can write our tests:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from src.testproject.sdk.drivers import webdriver\ndef simple_test():\n    driver = webdriver.Chrome()\n    driver.get(\"http:\/\/test\")\n    passed = driver.find_element_by_css_selector(\"#test\").is_displayed()\n    print(\"Test passed\") if passed else print(\"Test failed\")\n    driver.quit()\n\nif __name__ == \"__main__\":\n    simple_test()<\/code><\/pre>\n\n\n\n<p>The above is a simple test in TestProject. It will open a browser and visit the http:\/\/test page. Then, it will check if the element with the id test is displayed. If it is, it will print Test passed. If it is not, it will print Test failed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>PyUnit<\/strong><\/h2>\n\n\n\n<p>PyUnit is a unit testing framework for Python. It is a simple, easy-to-use, and well-supported framework. Just like unittests, PyUnit comes as standard with the Python package, so it doesn&#8217;t need to be installed.<\/p>\n\n\n\n<p>Let&#8217;s see a simple use case of PyUnit:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from unittest import TestCase\nclass TestSum(unitest.TestCase):\n    def test_sum_14(self):\n        \"\"\"test case sum 14\"\"\"\n        assert sum(&#91;5, 3, 6]) == 14, \"Should be 14\"\n\nif __name__ == '__main__':\n    unittest.main()<\/code><\/pre>\n\n\n\n<p>It is a simple test case. It will check if the sum of 5, 3, and 6 is 14. If it is, it will print Test passed. If it is not, it will print Test failed. See that the structure is very similar to unittests.<\/p>\n\n\n\n<p>We have fixtures in PyUnit. We can use the setUp and tearDown methods to set up and clean up the environment before and after each test. We can use the setUpClass and tearDownClass methods to set up and clean up the environment before and after all the tests in the class. We can use the setUpMethod and tearDownMethod methods to set up and clean up the environment before and after each test in the method. We can use the setUpPackage and tearDownPackage methods to set up and clean up the environment before and after all the tests in the package.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/www.aviator.co\/\" data-type=\"URL\" data-id=\"https:\/\/www.aviator.co\/\" target=\"_blank\" rel=\"noreferrer noopener\">Aviator<\/a>: Automate your cumbersome merge processes<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"727\" src=\"https:\/\/blog.aviator.co\/wp-content\/uploads\/2022\/08\/blog-cta-1024x727.png\" alt=\"\" class=\"wp-image-57\" srcset=\"https:\/\/www.aviator.co\/blog\/wp-content\/uploads\/2022\/08\/blog-cta-1024x727.png 1024w, https:\/\/www.aviator.co\/blog\/wp-content\/uploads\/2022\/08\/blog-cta-300x213.png 300w, https:\/\/www.aviator.co\/blog\/wp-content\/uploads\/2022\/08\/blog-cta-768x545.png 768w, https:\/\/www.aviator.co\/blog\/wp-content\/uploads\/2022\/08\/blog-cta-1536x1090.png 1536w, https:\/\/www.aviator.co\/blog\/wp-content\/uploads\/2022\/08\/blog-cta-2048x1454.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Aviator automates tedious developer workflows by managing git Pull Requests (PRs) and continuous integration test (CI) runs to help your team avoid broken builds, streamline cumbersome merge processes, manage cross-PR dependencies, handle flaky tests while maintaining their security compliance.<\/p>\n\n\n\n<p>There are 4 key components to Aviator:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>MergeQueue<\/strong> &#8211; an automated queue that manages the merging workflow for your GitHub repository to help protect important branches from broken builds. The Aviator bot uses GitHub Labels to identify Pull Requests (PRs) that are ready to be merged, validates CI checks, processes semantic conflicts, and merges the PRs automatically.<\/li>\n\n\n\n<li><strong>ChangeSets<\/strong> &#8211; workflows to synchronize validating and merging multiple PRs within the same repository or multiple repositories. Useful when your team often sees groups of related PRs that need to merged together, or otherwise treated as a single broader unit of change.<\/li>\n\n\n\n<li><strong>FlakyBot<\/strong> &#8211; a tool to automatically detect, take action on and process results from flaky tests in your CI infrastructure.<\/li>\n\n\n\n<li><strong>Stacked PRs CLI<\/strong> &#8211; a command line tool that helps developers manage cross-PR dependencies. This tool also automates syncing and merging of stacked PRs. Useful when your team wants to promote a culture of smaller, incremental PRs instead of large changes, or when your workflows involve keeping multiple, dependent PRs in sync.<\/li>\n<\/ol>\n\n\n\n<p><a href=\"https:\/\/www.aviator.co\/\" target=\"_blank\" rel=\"noopener\" title=\"\">Try it for free.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>While sometimes tedious, testing is critical if you\u2019re at all interested in developing a robust and reasonably bug-free codebase that endures. In software testing, these are your options: Unit testing involves testing snippets of code, single functions, classes, utility functions, components, etc. Here, each function, component, class, etc. is tested independently and as a single [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":67,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[301],"tags":[],"class_list":["post-53","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials-guides"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"acf":[],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/www.aviator.co\/blog\/wp-content\/uploads\/2022\/08\/guide-to-python-1.jpeg","post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.aviator.co\/blog\/wp-json\/wp\/v2\/posts\/53","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aviator.co\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aviator.co\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aviator.co\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aviator.co\/blog\/wp-json\/wp\/v2\/comments?post=53"}],"version-history":[{"count":18,"href":"https:\/\/www.aviator.co\/blog\/wp-json\/wp\/v2\/posts\/53\/revisions"}],"predecessor-version":[{"id":4958,"href":"https:\/\/www.aviator.co\/blog\/wp-json\/wp\/v2\/posts\/53\/revisions\/4958"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.aviator.co\/blog\/wp-json\/wp\/v2\/media\/67"}],"wp:attachment":[{"href":"https:\/\/www.aviator.co\/blog\/wp-json\/wp\/v2\/media?parent=53"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aviator.co\/blog\/wp-json\/wp\/v2\/categories?post=53"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aviator.co\/blog\/wp-json\/wp\/v2\/tags?post=53"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}