用python练习BDD [英] Practicing BDD with python

查看:64
本文介绍了用python练习BDD的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

python中有哪些最先进的框架和工具可用于实践行为驱动开发?尤其是找到与rspec和mocha类似的工具来处理红宝石会很棒.

Which are the most advanced frameworks and tools there are available for python for practicing Behavior Driven Development? Especially finding similar tools as rspec and mocha for ruby would be great.

推荐答案

Ian Bicking 建议使用 doctest 进行行为驱动设计:

Ian Bicking recommends using doctest for behavior driven design:

我个人倾向于使用空隙模拟采用行为驱动的设计风格.具体来说,规范插件对于BDD来说非常有用.

I personally tend to use nose and voidspace mock in a behavior driven design style. Specifically, the spec plugin for nose is excellent for BDD.

这篇关于用python练习BDD的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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