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

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.

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

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. :)

In article

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

Brendan Miller

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''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自带的单元测试框架,最好的python单元测试框架相关推荐

  1. python自带的文档生成工具,Python文档生成工具pydoc

    在Python中有很多很好的工具来生成字符串文档(docstring),比如说: epydoc.doxygen.sphinx,但始终觉得pydoc还是不错的工具,用法非常简单,功能也算不错,本文主要介 ...

  2. python自带的解释器叫做_21条python面试题,值得收藏!

    再过20天左右,就到了金九银十的跳槽季节了.如果你应聘的是一个Python开发岗位,你就应该知道这是门什么样的语言,以及它为什么这么酷.以及它哪里不好.这样才能更好的与面试官沟通,赢得面试岗位.今天, ...

  3. python自带的idle输入python_打开python自带IDLE出的问题

    打开python自带IDLE编辑器时出的问题 IDLE can't bind to a TCP/IP port, which is necessary to communicate with its ...

  4. 十大被低估的python库_小白必读!十大被低估的Python自带库!

    原标题:小白必读!十大被低估的Python自带库! 大家在学习python的过程中,都会了解到python的一个强大的功能在于各种强大的第三方库函数,大家只需要通过pip install 即可安装我们 ...

  5. 搭建Python自带静态Web服务器

    学习目标 能够知道搭建Python自带Web服务器 1. 静态Web服务器是什么? 可以为发出请求的浏览器提供静态文档的程序. 平时我们浏览百度新闻数据的时候,每天的新闻数据都会发生变化,那访问的这个 ...

  6. 十大被低估的Python自带库!

    大家在学习python的过程中,都会了解到python的一个强大的功能在于各种强大的第三方库函数,大家只需要通过pip install 即可安装我们需要的库函数. 大家往往只是关注自己安装的pytho ...

  7. python_几句话入门Python自带编辑器IDLE

    [转]几句话入门Python自带编辑器IDLE 转自:Python编辑器IDLE傻瓜入门 下载python进行安装,默认自带此工具 开始->程序->Python 2.*/3.*-> ...

  8. python自带的文档生成工具_Python文档生成工具pydoc使用介绍

    在Python中有很多很好的工具来生成字符串文档(docstring),比如说: epydoc.doxygen.sphinx,但始终觉得pydoc还是不错的工具,用法非常简单,功能也算不错,本文主要介 ...

  9. python拼图游戏编码_教你用Python自制拼图小游戏,轻松搞定熊孩子

    摘要:本文主要为大家详细介绍了python实现拼图小游戏,文中还有示例代码介绍,感兴趣的小伙伴们可以参考一下. 开发工具 Python版本:3.6.4 相关模块: pygame模块: 以及一些Pyth ...

  10. python拼图游戏代码_教你用Python自制拼图小游戏,轻松搞定熊孩子

    摘要:本文主要为大家详细介绍了python实现拼图小游戏,文中还有示例代码介绍,感兴趣的小伙伴们可以参考一下. 开发工具 Python版本:3.6.4 相关模块: pygame模块: 以及一些Pyth ...

最新文章

  1. 以太主义的创始人维塔利克·布特林(Vitalik嫩模 Butlin)被称为“V神”
  2. PAT1096 Consecutive Factors (20)(逻辑)
  3. mysql主从同步slave_MySQL主从复制(Master-Slave)实践
  4. OpenShift 4 - 了解Secret
  5. ECMAScript面向对象(一)
  6. 宽屏系统上播放幻灯片的设想
  7. 科研伦理与学术规范2021秋期末考答案|网课期末考答案|学堂在线|北京师范大学印波副教授
  8. IDEA修改背景颜色大全(护眼绿等)
  9. 山东大学高频电子线路实验二 高频功率放大实验详解
  10. 海康摄像头ffmpeg推流到srs流媒体服务器
  11. 分享四个无版权,高清的图片素材网站
  12. 思科模拟器Cisco Packet Tracer的下载
  13. Python——数学运算函数
  14. JS 生成永不重复的随机序列号
  15. JavaScript的全局作用域、全局对象window
  16. java内置监视管理控制台
  17. win10 增加右键在此处打开命令行菜单
  18. 小程序实现轮播图跳转页面和小程序
  19. module.exports 和 exports的区别
  20. kafka维护工具使用指南

热门文章

  1. matlab 柱状图 折线图,数据可视化分析(柱状图、折线图、热力图)
  2. gets函数没有输入会怎样_如果没有“227事件”,肖战的未来会是怎样的?
  3. 【时间序列预测】基于matlab鲸鱼算法优化LSTM时间序列预测【含Matlab源码 1687期】
  4. 【TWVRP】基于matlab遗传和粒子群算法求解带时间窗的车辆路径规划问题【含Matlab源码 1037期】
  5. 【图像隐写】基于matlab WOW算法图像自适应隐写【含Matlab源码 368期】
  6. mysql 分组 列转行_MySQL数据库的分组操作,语句拼接,列转行操作
  7. java适配器模式_java设计模式之适配器模式
  8. 阿里巴巴《rocketmq开发指南》_主流消息中间件优劣:ActiveMQ,RabbitMQ,Kafka,RocketMQ...
  9. 动态链接库(共享库).so文件的使用
  10. 方舟生存进化联机显示没有找到服务器,方舟生存进化搭建服务器联机教程_方舟生存进化怎么联机_牛游戏网...