Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否加接口测试功能? #14

Closed
zboya opened this issue Jul 14, 2016 · 5 comments
Closed

是否加接口测试功能? #14

zboya opened this issue Jul 14, 2016 · 5 comments
Labels
Milestone

Comments

@zboya
Copy link

zboya commented Jul 14, 2016

api和example都已经有了,用go模拟测试完全可以啊

@caixw
Copy link
Owner

caixw commented Jul 14, 2016

测试功能应该在模板层面就可以解决,但是说实在的,在实用性上,肯定不如 postman 等专业的工具,所以一直在纠结要不要添加这个功能。

@caixw caixw added the maybe label Jul 14, 2016
@zboya
Copy link
Author

zboya commented Jul 15, 2016

postman还要自己写接口,自动执行脚本也要付费,如果apidoc加简单的一键测试,我觉得很好,需要填参数的时候,直接用ApiExample的参数去请求接口就好了,这样可以很快的发现接口是否有问题

@zboya
Copy link
Author

zboya commented Jul 15, 2016

swagger就有接口测试 try it out,挺实用,但swagger的门槛高

@caixw
Copy link
Owner

caixw commented Jul 15, 2016

我写过一个测试用的模板,用于生成一个专用的测试文档,方便开发人员测试。但是功能上与专有工具想比,还是差很多,所以暂时搁置了。

后来又想通过 apidoc 生成一组测试用数据,然后通过热编译工具触发执行测试工作。

最终可能会在这两个方案中选择一个,或是全都不选。。

@caixw caixw added this to the v3.0 milestone Jul 21, 2016
@caixw caixw closed this as completed Jul 21, 2016
@Huarong
Copy link

Huarong commented Jul 7, 2017

这个功能还挺实用地,文档、测试只保留一份样例就行了
请问这个功能现在有进展吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants