{"id":15444697,"url":"https://github.com/tybruno/unit-vs-functional-testing","last_synced_at":"2026-05-04T02:34:03.026Z","repository":{"id":137407787,"uuid":"406865448","full_name":"tybruno/unit-vs-functional-testing","owner":"tybruno","description":"We discuss the differences between Unit and Functional testing with Python examples. We also make a case of why functional testing should be the minimum requirement for testing a project.","archived":false,"fork":false,"pushed_at":"2021-09-15T20:07:35.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T08:14:03.304Z","etag":null,"topics":["functional-testing","python","testing","unit-testing","unittesting"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tybruno.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-09-15T17:28:27.000Z","updated_at":"2021-09-15T20:07:38.000Z","dependencies_parsed_at":"2024-07-11T08:17:47.423Z","dependency_job_id":null,"html_url":"https://github.com/tybruno/unit-vs-functional-testing","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":"0.33333333333333337","last_synced_commit":"b94cad2f44985b69e8aa5f20adc338bbac873d6b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tybruno/unit-vs-functional-testing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tybruno%2Funit-vs-functional-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tybruno%2Funit-vs-functional-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tybruno%2Funit-vs-functional-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tybruno%2Funit-vs-functional-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tybruno","download_url":"https://codeload.github.com/tybruno/unit-vs-functional-testing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tybruno%2Funit-vs-functional-testing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32592646,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"online","status_checked_at":"2026-05-04T02:00:06.625Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["functional-testing","python","testing","unit-testing","unittesting"],"created_at":"2024-10-01T19:42:19.091Z","updated_at":"2026-05-04T02:34:03.005Z","avatar_url":"https://github.com/tybruno.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# unit-vs-functional-testing\n\nWe discuss the differences between Unit and Functional testing with Python examples. We also make a case of why functional testing should be the minimum requirement for testing a project.\n\n## TLDR\n#### What is Unit Testing?\n\n[A unit test is a way of testing a unit - the smallest piece of code that can be logically isolated in a system.](https://smartbear.com/learn/automated-testing/what-is-unit-testing/)\n\nSince unittest is designed to test only the individual unit (i.e. function/method), other function defined in the individual unit will need to be [Mocked](https://docs.python.org/3/library/unittest.mock.html) out.\n\n#### What is Functional Testing?\n\nSince functional tests are designed to test your code in it's entirety, you will only mock out external apps / resources.\n#### Why Use Functional Testing over Unit Testing?\n\n- *simplicity*: writing functional tests are simple and quick since it only requires mocking out external apps / resources / libraries.\n- *efficiant*: Since we are able to test multiple written functions with a single test it will be able to cover more code.\n\n## Requirements\nThis project requires [jupyter-lab](https://jupyter.org/install.html) to be installed.\n\n## Installation\n`git clone https://github.com/tybruno/unit-vs-functional-testing.git`\n\n`jupyter-lab`\n\n## Discussions\nFeel free to add your own comments, opinions, or ideas into the [Discussions](https://github.com/tybruno/unit-vs-functional-testing/discussions) section.\n## Acknowledgements\nBig thank you to [Andrew Schneck](https://github.com/andrewschenck) for helping me put this together. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftybruno%2Funit-vs-functional-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftybruno%2Funit-vs-functional-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftybruno%2Funit-vs-functional-testing/lists"}