Linux Today: Linux News On Internet Time.

More on LinuxToday

Cucumber Makes Behavior-Driven Ruby on Rails Development Cool

Apr 01, 2010, 01:32 (0 Talkback[s])
(Other stories by Saurabh Bhatia)


Re-Imagining Linux Platforms to Meet the Needs of Cloud Service Providers

"This article introduces the Cucumber framework, a tool for implementing the Behavior-Driven Development (BDD) methodology. The idea behind BDD is simple: everyone should understand the system features. Cucumber promotes this idea by enabling the features of a system to be written in the native language of the program as either specs or functional tests.

"Although both are Ruby-based BDD frameworks, Cucumber is not a replacement for the popular RSpec framework; they work in conjunction with each other. The major difference between the two lies in the nature of their testing approaches. Cucumber is a high-level testing tool that defines the feature specs, while RSpec is a low-level testing tool that checks for data consistency and application flow.

"Although this article is written in the context of Rails, Cucumber has wide applications in other technologies too, from .NET to the iPhone."

Complete Story

Related Stories: