![]() | 1 hhrmatata 2014-01-08 12:20:55 +08:00 ![]() 你应该Google一下,就有答案了。 |
![]() | 2 suckli 2014-01-08 12:25:51 +08:00 ![]() |
![]() | 3 polythene 2014-01-08 12:53:16 +08:00 LZ你就从了unittest吧 |
![]() | 4 pyKun 2014-01-08 13:00:12 +08:00 |
![]() | 5 fdsfsdfsdf3334 2014-01-08 13:09:42 +08:00 这个能用来测试啥 |
![]() | 6 loveshouhu OP @polythene 雅蠛蝶。。。 |
![]() | 7 loveshouhu OP @fdsfsdfsdf3334 测试代码。 == |
![]() | 8 wenbinwu 2014-01-08 16:51:31 +08:00 ![]() |
![]() | 9 reorx 2014-01-08 21:57:44 +08:00 ![]() @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-01-09 17:19:36 +08:00 补充一个:doctest |
![]() | 12 1989922yan 2014-01-20 13:05:34 +08:00 doctest,简单好用 |