TommyLemon / APIAuto

☔ 敏捷开发最强大易用的接口工具,机器学习零代码测试、生成代码与静态检查、生成文档与光标悬浮注释,腾讯、华为、SHEIN、传音、工行等使用 ☔ The most advanced tool for HTTP API. Testing with machine learning, generating codes and static analysis, generating comments and floating hints. Used by Tencent, Huawei, SHEIN, TRANSSION, ICBC, etc.
http://apijson.cn/api
Apache License 2.0
1.94k stars 242 forks source link

首个 Go 零代码单元测试 unitauto-go 1.1 发布,UnitAuto 的 Go 版 #49

Open TommyLemon opened 1 year ago

TommyLemon commented 1 year ago

1.1 更新内容: 新增支持 mock 各种 Struct 的成员变量,包括组合等复杂自定义对象; image

新增支持 static 静态标记字段,传 static: true 时,直接 test.Add 省去 test.Add.Add 中间的虚拟 class Add; image

完善基本类型及对应数组类型;

兼容 Go 1.18+; 将接口服务逻辑从 main.go 迁移到 unitauto/server.go,并新增默认测试用例; 迁移打包的可执行文件到 TommyLemon/StaticResources/UnitAuto/file;

https://www.oschina.net/news/253251/unitauto-go-1-1-released