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

beego 单元测试的 bug | 人未尽,杯莫停 #15

Open
sunwenli opened this issue Dec 18, 2019 · 0 comments
Open

beego 单元测试的 bug | 人未尽,杯莫停 #15

sunwenli opened this issue Dec 18, 2019 · 0 comments

Comments

@sunwenli
Copy link
Owner

https://sunwenli.github.io/zh/post/2019-0627/

当我在用 beego 写单元测时,源代码里用到了 beego.AppConfig.GetSection() 然后在测试方法调用的时候就报错了 . 测试方法不能正确的读取配置文件的内容。部分代码如下: cfgs, err := beego.AppConfig.GetSection("test_conf") if err != nil

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

No branches or pull requests

1 participant