黄瓜与 RSpec [英] cucumber vs. RSpec

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

问题描述

我想开始深入研究 BDD.我以前从未使用过 TDD不确定我是否应该从学习 RSpec 开始,然后跳到 Cucumber或者直接使用 Cucumber.

I want to start diving into BDD. I have never used TDD before and am not sure if I should start by learning RSpec and then jump to Cucumber or just go straight to using Cucumber.

我一直在互联网上阅读有关两者的信息,在我看来Cucumber 可能是 RSpec 的替代品".我是对的还是应该是一个用于某些东西,另一个用于其他东西?

I have been reading on the internet about both and it seems to me that Cucumber could be a 'replacement' for RSpec. Am I right or should be one used for certain things and the other one for others?

推荐答案

是的,Cucumber 和 rspec 都用于 BDD.

Yes, cucumber and rspec are both used for BDD.

我个人更喜欢黄瓜,但有些人觉得它令人反感,而且更喜欢他们的测试是更少的英语,更多的代码.不过,两者都是很棒的工具.

I personally prefer Cucumber, but some people find it offputting, and prefer their tests to be less english, more code. Both are great tools, though.

这篇关于黄瓜与 RSpec的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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