-
-
Notifications
You must be signed in to change notification settings - Fork 771
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
Improve test library #442
Comments
|
? 加上assert message不就好了,而且加 -v -D 执行就看到完整栈信息 assert(false, "assert message: %s", "xxx") |
起码能提示下expact和actual,一条一条写提示信息得累死 |
就现在这个写测试的复杂度,我也很能理解为啥ut会缺这么多。 一个人写没有这些无所谓,多人参与以后没有足够的ut控制代码质量会很快下降的。 |
恩,你可以改进下,封装的通用测试接口暂时还是先放置在tests/目录下吧 tests不全,跟复杂度倒是没啥关系,弄得再简单,我一个人确实没这么多精力经常去同步维护tests,现在空闲时间太少,还要同步文档。 |
最好还是能根据注释自动生成,不过这又是个天坑了 |
这个坑我暂时不打算躺了,等以后有时间吧。。 |
测试库也可以改进下,用assert报错都看不出来有啥问题
Originally posted by @OpportunityLiu in https://github.com/_render_node/MDIzOlB1bGxSZXF1ZXN0UmV2aWV3VGhyZWFkMTc3NzA5OTc0OnYy/pull_request_review_threads/discussion
The text was updated successfully, but these errors were encountered: