黄瓜与内置测试?[轨道] [英] Cucumber vs. built-in testing? [Rails]

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

问题描述

我昨天问了一个关于不同测试框架的问题.可以在此处找到此问题.现在我对不同的框架有了更好的理解,我有一个非常简单的问题:

I asked a question about different testing frameworks yesterday. This question can be found here. Now that I have a better understanding of the different frameworks, I have a very simple question:

有了基本的了解,但在使用 Rails 的内置测试框架(基本断言)编写测试方面的经验非常有限,我可以直接跳到使用 RSpec、Webrat 和 Cucumber 进行测试吗?

With a basic understanding, but very limited experience with writing tests with rails' built in testing framework (basic assertions), would it be okay for me to jump directly to testing with RSpec, Webrat, and Cucumber?

谢谢!

作为旁注:是的,这是一个基于意见的问题,但我觉得收到的这个问题的输入对社区来说足够有价值,可以让这个问题保持开放.谢谢.

推荐答案

我从来没有用内置测试框架编写过很多测试,但是直接与 factory girl 和 RSpec 一起使用 Cucumber 并且对它非常满意.我发现首先描述我想在 Cucumber 中处理的功能非常容易.我总是很难让自己先编写单元测试.

I never wrote a lot of tests with the build in testing framework, but jumped right in to use Cucumber with factory girl and RSpec and am VERY happy with it. I find it very easy to describe features I want to work on in Cucumber first. I always had trouble getting myself to write Unit tests first.

因此,根据我的个人经验,我可以鼓励您直接进入有趣的事物!

So from my personal experience, I can encourage you to jump right into the fun stuff!

这篇关于黄瓜与内置测试?[轨道]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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