黄瓜对RSpec [英] cucumber vs. RSpec

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

问题描述

我想开始潜入BDD。我从来没有使用过TDD和am
不知道我应该开始学习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?

推荐答案

是的,黄瓜是什么?和rspec都用于BDD。

Yes, cucumber and rspec are both used for BDD.

我个人喜欢Cucumber,但有些人认为它是offputting,而
喜欢
他们的测试更少英语,更多代码。两者都是伟大的工具,但。

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天全站免登陆