Skip to content

Releases: TommyLemon/unitauto-py

统计覆盖率报告;新增关于作者和其它项目

22 Aug 03:29
7b0a022
Compare
Choose a tag to compare

新增统计代码覆盖率,并暴露 /coverage/start, /coverage/report 等相关 HTTP API;

image image

新增支持默认模块名 DEFAULT_MODULE_PATH;
优化对类型的判断和解析;
首页新增 关于作者 和 其它项目;

创作不易、坚持更难,打开以下链接右上角点亮 ⭐ Star 支持/收藏一下吧,谢谢 ^_^

项目主页

https://github.com/TommyLemon/unitauto-py

码云主页

https://gitee.com/TommyLemon/unitauto-py

其它项目

UnitAuto 机器学习零代码单元测试平台,零代码、全方位、自动化 测试 方法/函数 的正确性、可用性和性能

unitauto-go UnitAuto Go 库,可通过 GitHub 仓库等远程依赖

APIJSON 🚀 腾讯零代码、全功能、强安全 ORM 库 🏆 后端接口和文档零代码,前端(客户端) 定制返回 JSON 的数据和结构

uliweb-apijson Python 版 APIJSON,支持 MySQL, PostgreSQL, SQL Server, Oracle, SQLite 等

APIAuto 敏捷开发最强大易用的 HTTP 接口工具,机器学习零代码测试、生成代码与静态检查、生成文档与光标悬浮注释,集 文档、测试、Mock、调试、管理 于一体的一站式体验

SQLAuto 智能零代码自动化测试 SQL 语句执行结果的数据库工具,任意增删改查、任意 SQL 模板变量、一键批量生成参数组合、快速构造大量测试数据

优化体验;解决 bug;提升扩展性

24 Jul 16:52
Compare
Choose a tag to compare

新增支持暴露自定义函数来提高扩展性;
优化对构造函数的判断;

远程执行函数

新增自动识别 async def 函数,调用 asyncio.run 获取结果;
新增支持在 class 中写 @staticmethod 来获取实例的方法;
新增支持传参 args,替代 methodArgs 来简化传参;
解决 isinstance(obj, any) 报错 must be a type or tuple of types;

自动扫描函数

解决缺少和重复返回 class 和 function 信息;


效果

同步纯函数:
https://github.com/TommyLemon/unitauto-py/blob/main/unitauto/test/testutil.py#L39-L40
image

class 内成员函数:
https://github.com/TommyLemon/unitauto-py/blob/main/unitauto/test/testutil.py#L111-L112
image

async & await 协程异步函数:
https://github.com/TommyLemon/unitauto-py/blob/main/unitauto/test/testutil.py#L63-L67
image

异步回调函数:
https://github.com/TommyLemon/unitauto-py/blob/main/unitauto/test/testutil.py#L70-L83
image

提升可扩展性;解决部分文件扫描不到

23 Jul 16:37
Compare
Choose a tag to compare

暴露自定义函数来提高扩展性,支持在 class 中写 @staticmethod 来获取实例的方法;
解决通过 dir(package) 扫描函数有的文件扫不到,导致返回函数信息不完整。

同步纯函数:
https://github.com/TommyLemon/unitauto-py/blob/main/unitauto/test/testutil.py#L39-L40
image

class 内成员函数:
https://github.com/TommyLemon/unitauto-py/blob/main/unitauto/test/testutil.py#L111-L112
image

async & await 协程异步函数:
https://github.com/TommyLemon/unitauto-py/blob/main/unitauto/test/testutil.py#L63-L67
image

异步回调函数:
https://github.com/TommyLemon/unitauto-py/blob/main/unitauto/test/testutil.py#L70-L83
image

新增支持返回 this 当前实例值

17 Jul 16:30
3921649
Compare
Choose a tag to compare

解决调 POST /method/invoke 执行同步函数不返回结果

17 Jul 15:31
Compare
Choose a tag to compare

解决调 POST /method/invoke 执行同步函数不返回结果。

同步函数:
image

异步回调函数:
image

新增支持 async 协程函数和 fun(callback) 异步回调函数

17 Jul 13:53
3633da5
Compare
Choose a tag to compare

新增支持 async 协程函数和 fun(callback) 异步回调函数;
新增支持回调函数传表达式,例如 "type": "def(a,b)", value:{ "return": "a - b"};
解决某些对象序列化报错导致最终未返回结果。

同步纯函数:
https://github.com/TommyLemon/unitauto-py/blob/main/unitauto/test/testutil.py#L39-L40
image

class 内成员函数:
https://github.com/TommyLemon/unitauto-py/blob/main/unitauto/test/testutil.py#L111-L112
image

async & await 协程异步函数:
https://github.com/TommyLemon/unitauto-py/blob/main/unitauto/test/testutil.py#L63-L67
image

异步回调函数:
https://github.com/TommyLemon/unitauto-py/blob/main/unitauto/test/testutil.py#L70-L83
image

完善返回类型等信息;解决上传缺少入参

24 Jun 17:24
d2bb457
Compare
Choose a tag to compare

动态扫码方法:解决 Admin 上传用例时没有上传入参列表;
动态执行方法:返回 return type 返回值类型和 methodArgs 入参类型与值;

新增支持 this 和 constructor;解决 bug

24 Jun 15:58
Compare
Choose a tag to compare

新增支持 this 设置实例及成员变量和 constructor 指定获取实例函数;

动态扫码方法:包级函数的类名使用函数名;解决部分方法扫描不到;
动态执行方法:解决 methodArgs 中 "list:[1, 2, 3]" 这种写法解析报错;

扫描函数返回 returnType,Admin 显示返回类型

18 Jun 16:48
Compare
Choose a tag to compare

解决扫描函数未返回 returnType,导致 UnitAuto-Admin 不显示返回类型

新增支持同步函数;新增扫描函数和执行函数的 HTTP 服务

18 Jun 16:31
Compare
Choose a tag to compare