最好的python单元测试框架

编程入门 行业动态 更新时间:2024-10-12 08:16:07
本文介绍了最好的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 ****** @ catphivewrites: Brendan Miller <ca******@catphivewrites: 重型蟒蛇单位会是什么测试人员说这是最好的框架吗? 我看过一些提及可能是内置的单元测试框架 并不是那么好。 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 ?? 模块上,因此可以轻松集成现有的单元测试。也可以将 用作单元测试发现和跑步者框架,这不会影响测试本身在不能 有一个??鼻子?已经安装了。 - \ 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 ****** @ catphivewrites: Brendan Miller <ca******@catphivewrites: 重型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>, Brendan Miller< ca ****** @ catphivewrote: In article <5f**********************************@d42g2000prb. googlegroups>, Brendan Miller <ca******@catphivewrote: 什么是重蟒单位测试人员说这是最好的框架吗? 我看过一些提及可能是内置的单元测试框架 并不是那么好。我听说过有关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单元测试框架

本文发布于:2023-11-24 02:27:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1623633.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:最好的   框架   单元测试   python

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!