{"id":16434387,"url":"https://github.com/tommylemon/unitauto-py","last_synced_at":"2025-06-28T02:33:36.415Z","repository":{"id":176275648,"uuid":"655250189","full_name":"TommyLemon/unitauto-py","owner":"TommyLemon","description":"☀️ 机器学习单元测试平台，零代码、全方位、自动化 测试 方法/函数 的正确性、可用性和性能。☀️An unit testing platform powered by machine learning. Coding-free, comprehensive and automatic testing for methods/functions.","archived":false,"fork":false,"pushed_at":"2024-02-21T14:46:33.000Z","size":76,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-04-22T22:47:11.119Z","etag":null,"topics":["automation","automation-library","python","python-lib","python-library","python3","test-automation","test-library","testautomation","unit-test","unit-testing","unittest","unittesting","ut"],"latest_commit_sha":null,"homepage":"http://apijson.cn/unit?language=Python","language":"Python","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/TommyLemon.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":"2023-06-18T10:47:28.000Z","updated_at":"2024-08-24T17:56:16.447Z","dependencies_parsed_at":"2023-12-25T13:48:12.831Z","dependency_job_id":"9e529670-1d51-4bf7-a14f-28b964370d75","html_url":"https://github.com/TommyLemon/unitauto-py","commit_stats":null,"previous_names":["tommylemon/unitauto-py"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TommyLemon%2Funitauto-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TommyLemon%2Funitauto-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TommyLemon%2Funitauto-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TommyLemon%2Funitauto-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TommyLemon","download_url":"https://codeload.github.com/TommyLemon/unitauto-py/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245078067,"owners_count":20557274,"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":["automation","automation-library","python","python-lib","python-library","python3","test-automation","test-library","testautomation","unit-test","unit-testing","unittest","unittesting","ut"],"created_at":"2024-10-11T08:49:01.010Z","updated_at":"2025-03-23T08:31:46.555Z","avatar_url":"https://github.com/TommyLemon.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# unitauto-py \n**UnitAuto Python 库，可通过 pip 仓库等远程依赖。** \u003cbr /\u003e\n**UnitAuto Python Library for remote dependencies with pip, etc.** \u003cbr /\u003e\n\n同步纯函数：\u003cbr /\u003e\nSync pure function: \u003cbr /\u003e\nhttps://github.com/TommyLemon/unitauto-py/blob/main/unitauto/test/testutil.py#L39-L40\n\u003cimg width=\"1217\" alt=\"image\" src=\"https://github.com/TommyLemon/unitauto-py/assets/5738175/9ce1a1d1-883b-40be-bc77-7ed7da6f9ff6\"\u003e\n\nclass 内成员函数：\u003cbr /\u003e\nclass member function: \u003cbr /\u003e\nhttps://github.com/TommyLemon/unitauto-py/blob/main/unitauto/test/testutil.py#L111-L112\n\u003cimg width=\"1279\" alt=\"image\" src=\"https://github.com/TommyLemon/unitauto-py/assets/5738175/2436b0d2-54f4-4c5a-be9c-c9618a258df2\"\u003e\n\nasync \u0026 await 协程异步函数：\u003cbr /\u003e\nasync \u0026 await function: \u003cbr /\u003e\nhttps://github.com/TommyLemon/unitauto-py/blob/main/unitauto/test/testutil.py#L63-L67\n\u003cimg width=\"1280\" alt=\"image\" src=\"https://github.com/TommyLemon/unitauto-py/assets/5738175/100a6605-2c37-4c51-92ea-a6ae080c0ab4\"\u003e\n\n异步回调函数：\u003cbr /\u003e\nthread callback function: \u003cbr /\u003e\nhttps://github.com/TommyLemon/unitauto-py/blob/main/unitauto/test/testutil.py#L70-L83\n\u003cimg width=\"1281\" alt=\"image\" src=\"https://github.com/TommyLemon/unitauto-py/assets/5738175/101c3736-93bc-409c-8f9f-b189e13cb06b\"\u003e\n\u003cimg width=\"1496\" alt=\"image\" src=\"https://github.com/TommyLemon/unitauto-py/assets/5738175/3e7ed198-29bb-4094-ab40-e32c7650cf8b\"\u003e\n\n代码覆盖率统计：\u003cbr /\u003e\nCode coverage: \u003cbr /\u003e\n\u003cimg width=\"1495\" alt=\"image\" src=\"https://github.com/TommyLemon/unitauto-py/assets/5738175/13e7ae6c-1384-4fdc-a7b0-79693895ec6a\"\u003e\n\u003cimg width=\"1495\" alt=\"image\" src=\"https://github.com/TommyLemon/unitauto-py/assets/5738175/054b46c8-e32c-4e45-ad6c-173bc63d5a9c\"\u003e\n\n\u003cbr /\u003e\n\n## 使用\n## Usage\n\n#### 1. 在你的项目中添加依赖\n#### 1. Add dependency to your project\n```sh\n\tpip install unitauto\n```\n如果执行以上命令未成功，则将 pip 换成 pip3 试试：\u003cbr /\u003e\nif you cannot run the command successfully, try pip3:\n```sh\n\tpip3 install unitauto\n```\n\n\u003cbr /\u003e\n\n#### 2. 启动单元测试服务\n#### 2. Start unit testing server\n\n添加以下代码到你的项目的 main.py \u003cbr /\u003e\nAdd the code below in main.py of your project \u003cbr /\u003e\nhttps://github.com/TommyLemon/unitauto-py/blob/main/main.py#L3-L13\n```py\nimport unitauto\n\nif __name__ == '__main__':\n    unitauto.server.start()\n```\n\n用 PyCharm 等 IDE 运行按钮来运行 main.py 或执行以下命令 \u003cbr /\u003e\nRun main.py with PyCharm or execute command below \u003cbr /\u003e\n```sh\n\tpython main.py\n```\n如果执行以上命令未成功，则将 python 换成 python3 试试：\u003cbr /\u003e\nif you cannot run the command successfully, try python3:\n```sh\n\tpython3 main.py\n```\n\n\u003cbr /\u003e\n\n#### 3. 参考主项目文档来测试\n#### 3. Test by following the main repo\n\nhttps://github.com/TommyLemon/UnitAuto\n\n\u003cbr /\u003e\n\n### 4. 关于作者\n### 4. Author\n[https://github.com/TommyLemon](https://github.com/TommyLemon)\u003cbr /\u003e\n\u003cimg width=\"1280\" src=\"https://github.com/TommyLemon/UIGO/assets/5738175/ec77df98-ff9b-43aa-b2f1-2fce2549d276\"\u003e\n\n如果有什么问题或建议可以 [去 APIAuto 提 issue](https://github.com/TommyLemon/APIAuto/issues)，交流技术，分享经验。\u003cbr \u003e\n如果你解决了某些 bug，或者新增了一些功能，欢迎 [提 PR 贡献代码](https://github.com/Tencent/APIJSON/blob/master/CONTRIBUTING.md)，感激不尽。\n\u003cbr /\u003e\nIf you have any questions or suggestions, you can [create an issue](https://github.com/TommyLemon/APIAuto/issues). \u003cbr \u003e\nIf you can added a feature or fixed a bug, please [create a pull request](https://github.com/TommyLemon/unitauto-py/pulls), thank you~\n\n\u003cbr /\u003e\n\n### 5. 其它项目\n### 5. Link\n创作不易、坚持更难，右上角点量 ⭐ Star 支持下吧，谢谢 ^\\_^  \u003cbr /\u003e\nPlease ⭐ Star the repos that you like ^\\_^  \u003cbr /\u003e\n\n[UnitAuto](https://github.com/TommyLemon/UnitAuto) 机器学习零代码单元测试平台，零代码、全方位、自动化 测试 方法/函数 的正确性、可用性和性能\n\n[unitauto-go](https://github.com/TommyLemon/unitauto-go) UnitAuto Go 库，可通过 GitHub 仓库等远程依赖\n\n[APIJSON](https://github.com/Tencent/APIJSON) 🚀 腾讯零代码、全功能、强安全 ORM 库 🏆 后端接口和文档零代码，前端(客户端) 定制返回 JSON 的数据和结构\n\n[uliweb-apijson](https://github.com/zhangchunlin/uliweb-apijson) Python 版 APIJSON，支持 MySQL, PostgreSQL, SQL Server, Oracle, SQLite 等\n\n[APIAuto](https://github.com/TommyLemon/APIAuto) 敏捷开发最强大易用的 HTTP 接口工具，机器学习零代码测试、生成代码与静态检查、生成文档与光标悬浮注释，集 文档、测试、Mock、调试、管理 于一体的一站式体验\n\n[SQLAuto](https://github.com/TommyLemon/SQLAuto) 智能零代码自动化测试 SQL 语句执行结果的数据库工具，任意增删改查、任意 SQL 模板变量、一键批量生成参数组合、快速构造大量测试数据\n\n[UIGO](https://github.com/TommyLemon/UIGO) 📱 零代码快准稳 UI 智能录制回放平台 🚀 自动兼容任意宽高比分辨率屏幕，自动精准等待网络请求，录制回放快、准、稳！\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftommylemon%2Funitauto-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftommylemon%2Funitauto-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftommylemon%2Funitauto-py/lists"}