是BDD还是TDD?你喜欢哪个?为什么呢? [英] BDD or TDD? Which do you prefer? and why?

查看:80
本文介绍了是BDD还是TDD?你喜欢哪个?为什么呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到许多开发人员不同意在启动新项目时使用哪种测试风格.我想知道为什么您选择这种特殊样式.

I see many developers disagree on which style of test to use while starting a new project. I'd like to know why you choose this particular style over the other.

推荐答案

TDD v BDD确实是一种心态.我的看法是,在TDD中,很多重点是此时该值应该是什么,就像我看到的BDD一样,它还将测试当然的值,以及在这种情况下我们如何获得它们.处于这种状态,我的应用程序的这一部分应该做什么.

TDD v BDD is really a state of mind. The way I see it is, in TDD a lot of emphasis is on what should this value be at this point, where as I see BDD, which will also test values of course and how we got them, as being more of, when this is in this state, what should this part of my application do.

这篇关于是BDD还是TDD?你喜欢哪个?为什么呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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