1
hhrmatata 2014 年 1 月 8 日 你应该Google一下,就有答案了。
|
2
suckli 2014 年 1 月 8 日 |
3
polythene 2014 年 1 月 8 日
LZ你就从了unittest吧
|
4
pyKun 2014 年 1 月 8 日
|
5
fdsfsdfsdf3334 2014 年 1 月 8 日
这个能用来测试啥
|
6
loveshouhu OP @polythene 雅蠛蝶。。。
|
7
loveshouhu OP @fdsfsdfsdf3334 测试代码。 ==
|
8
wenbinwu 2014 年 1 月 8 日 |
9
reorx 2014 年 1 月 8 日 @wenbinwu +1 pytest 的文档非常赞,除了 pytest 库本身的使用,也讲了很多非常好的单元测试思想和最佳实践。虽然我主要用 nose,但读过之后还是觉得受益匪浅。
特别推荐下这一部分,关于如何在项目中组织测试文件的位置: http://pytest.org/latest/goodpractises.html#choosing-a-test-layout-import-rules 其他关于 Python 测试的资源可以看下我的 pinboard 里的收藏: https://pinboard.in/u:reorx/t:testing/t:python/ |
10
loveshouhu OP @reorx 多谢。
|
11
loggerhead 2014 年 1 月 9 日
补充一个:doctest
|
12
1989922yan 2014 年 1 月 20 日
doctest,简单好用
|