unit-mesh / auto-dev

🧙‍AutoDev: The AI-powered coding wizard with multilingual support 🌐, auto code generation 🏗️, and a helpful bug-slaying assistant 🐞! Customizable prompts 🎨 and a magic Auto Dev/Testing/Document/Agent feature 🧪 included! 🚀
https://ide.unitmesh.cc/
Mozilla Public License 2.0
2.62k stars 303 forks source link

使用生成测试代码,未正确读取Web层接口对象结构 #211

Closed zhangzhiyi23 closed 2 weeks ago

zhangzhiyi23 commented 2 weeks ago

我在IDEA中使用插件遇到了一些问题

Environment

Steps to Reproduce

  1. 在Web层选择一个含有复杂对象的接口
  2. 代码位置右键,选择 AutoDev Chat -> 为此处编写测试(or 生成api测试数据)
  3. 触发生成操作

代码示例

    @PostMapping("setManagerUser")
    public Response<Boolean> setManagerUser(@RequestBody SetManagerUserRequestVo req) {
        return Response.OK(websiteManagerService.setManagerUser(req));
    }

我在架构图中有看到AST解析,预期生成相应的正确JSON数据结构作为测试输入,但是发送的对话、生成结果中似乎并没有相关内容

是不是配置问题,或是不支持该功能?

phodal commented 2 weeks ago

请从 release 中更新到最新版本,老版本可能有 bug

zhangzhiyi23 commented 2 weeks ago

使用了最新版 [1.8.7-RELEASE-241.zip],问题已解决