最好的python单元测试框架 [英] best python unit testing framwork

查看:118
本文介绍了最好的python单元测试框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

重型python单元测试人员说什么是最好的框架?


我看过一些提及可能是内置的单元测试框架

不是很好。我听说过有关py.test和

鼻子的几件好事。还有其他选择吗?是否有任何关于

最好的共识,或者至少它们如何相互叠加?


Brendan

What would heavy python unit testers say is the best framework?

I''ve seen a few mentions that maybe the built in unittest framework
isn''t that great. I''ve heard a couple of good things about py.test and
nose. Are there other options? Is there any kind of concensus about
the best, or at least how they stack up to each other?

Brendan

推荐答案

Brendan Miller< ca ****** @ catphive.netwrites:
Brendan Miller <ca******@catphive.netwrites:

重型蟒蛇单位会是什么测试人员说这是最好的框架吗?


我看过一些提及可能是内置的单元测试框架

并不是那么好。
What would heavy python unit testers say is the best framework?

I''ve seen a few mentions that maybe the built in unittest framework
isn''t that great.



这是正确的,单元测试中存在许多缺陷吗?尽管如此,它仍然具有压倒性优势,可以在任何标准的Python

安装中出现。


使用?? nosea ??至少建立在标准库a ?? unittesta ??

模块上,因此可以轻松集成现有的单元测试。也可以将

用作单元测试发现和跑步者框架,这不会影响测试本身在不能<的机器上的实用性br />
有一个??鼻子?已经安装了。


-

\ a ??神圣的未成年人犯罪,蝙蝠侠! a ??罗宾|

` \ |

_o__)|

Ben Finney

That''s right, there are many flaws in a??unittesta??. It nevertheless has
the overwhelming advantage of being present in any standard Python
installation.

Using a??nosea?? at least builds upon the standard library a??unittesta??
module, so can easily integrate existing unit tests. It can also be
used as a unit test discovery and runner framework, which doesn''t
impact the usefulness of the tests themselves on machines that don''t
have a??nosea?? installed.

--
\ a??Holy contributing to the delinquency of minors, Batman!a?? a??Robin |
`\ |
_o__) |
Ben Finney


Brendan Miller< ca ****** @ catphive.netwrites:
Brendan Miller <ca******@catphive.netwrites:

重型python单元测试人员说什么是最好的框架?


我看过一些提及可能是内置的单元测试框架

并不是那么好。我听说过有关py.test和

鼻子的几件好事。还有其他选择吗?是否有任何关于

最佳的共识,或者至少它们如何相互叠加?


Brendan
What would heavy python unit testers say is the best framework?

I''ve seen a few mentions that maybe the built in unittest framework
isn''t that great. I''ve heard a couple of good things about py.test and
nose. Are there other options? Is there any kind of concensus about
the best, or at least how they stack up to each other?

Brendan



我发现鼻子是最好的。它简单,容易,并且不会牺牲功能。如果你重视你的时间,所有好事。 :)

I find nose to be the best. It''s simple, easy, and doesn''t sacrifice
power. All good things if you value your time. :)


文章

< 5f ******************** ************** @ d42g2000prb。 googlegroups.com>,

Brendan Miller< ca ****** @ catphive.netwrote:
In article
<5f**********************************@d42g2000prb. googlegroups.com>,
Brendan Miller <ca******@catphive.netwrote:

什么是重蟒单位测试人员说这是最好的框架吗?


我看过一些提及可能是内置的单元测试框架

并不是那么好。我听说过有关py.test和

鼻子的几件好事。还有其他选择吗?是否有任何关于

最佳的共识,或者至少它们如何相互叠加?


Brendan
What would heavy python unit testers say is the best framework?

I''ve seen a few mentions that maybe the built in unittest framework
isn''t that great. I''ve heard a couple of good things about py.test and
nose. Are there other options? Is there any kind of concensus about
the best, or at least how they stack up to each other?

Brendan



多年来我一直在使用unittest。我很高兴。我看了一下

其他几个(我不记得究竟是哪些)并来到了

结论他们没有似乎提供了超过

unittest的足够优势,使其值得转换。


只是我的意见。

I''ve been using unittest for years. I''m happy with it. I''ve looked at a
couple of the other ones (I don''t remember exactly which ones) and came to
the conclusion that they didn''t seem to provide enough advantage over
unittest to make it worth switching.

Just my opinion.


这篇关于最好的python单元测试框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆