我在看 kennethreitz 大神写的 http://docs.python-guide.org/en/latest/writing/tests/
上面介绍了一些测试框架,比如 pytest, nose, tox, unittest2 等等。。
调查一下大家都在用 Python 的什么单元测试框架?
我在看 kennethreitz 大神写的 http://docs.python-guide.org/en/latest/writing/tests/
上面介绍了一些测试框架,比如 pytest, nose, tox, unittest2 等等。。
调查一下大家都在用 Python 的什么单元测试框架?
|
estApr 7, 2015
1
我打赌至少一半的人用了一个叫 null 测试的框架。
|
|
2
|
|
messenseApr 7, 2015
3
按 unittest 写,然后用 nose 跑。
|
|
5
@est 我用的是一个叫 None 测试的框架= =
|
|
6
另一半里面还有一半是用一个叫print的命令进行测试
|
|
wuchizhitu1988Apr 7, 2015
8
pytest应该是目前其中最好的了
|
|
grzhanApr 7, 2015
9
pytest,文档也写得蛮好的来着
|
|
9hillsApr 7, 2015
10
None: 50%
print: 25% logging: 15% 其他:10% |
|
zeayesApr 7, 2015
11
nose
|
|
12
看来很多人都只是用 python 写写小脚本。严肃的大型项目不写单元测试真是无法想象的。
|
|
FanAndXinranApr 7, 2015
14
unittest
|
|
libo26Apr 7, 2015
16
同10楼
|
|
ming2281Apr 8, 2015
18
unittest
|