-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
单元测试完善:contrib/drivers/pgsql #1812
Comments
增加 pgsql unit test #1853 |
大佬, gf的单元测试用要用什么工具啊, 我直接在goland文件右键"使用覆盖率运行", 发现ghttp需要在hosts设置"http://local:"域名, |
Sir, what tools should be used for gf unit testing? I directly right-clicked on the goland file and "run with coverage" and found that ghttp needs to set the "http://local:" domain name in hosts. |
@nuan1989 gf/.github/workflows/before_script.sh Line 6 in 141ca62
ci里面有个脚本加了个host,可以试试在本地加个host |
|
|
|
嗯嗯, 谢谢亮仔.... |
完善社区组件
contrib/drivers/pgsql
的单元测试。组件地址:https://github.com/gogf/gf/tree/master/contrib/drivers/pgsql
要求:
Model
的CURD
用例,至少包含这些方法的测试用例:Model/Raw
All/One/Value/Array/Scan/Count
Where
组合用例Insert/Replace/Save
Update
Delete
DB
接口的CURD
用例,至少包含这些方法的测试用例:Query/Exec
GetAll/GetOne/GetValue/GetCount/GetArray/GetScan
Insert/Replace/Save
Update
Delete
Tables/TableFields
特别重要注意事项:不支持的方法断言返回的错误即可。
The text was updated successfully, but these errors were encountered: