Home » Archives

Content tagged with: ruby

[29 May 2012 | 2 Comments | ]

Software tests never run fast enough. To improve this performance, this article presents a process called DMAIC (Define, Measure, Analyze, Improve, Control). It shows how to apply this approach with Cucumber, an open source Behavior Driven Development tool. Cucumber lets you describe how software should behave in plain text. The text is written in a business-readable domain-specific language and serves as requirements documentation and source of automated acceptance tests.

[24 May 2012 | No Comment | ]

This guide presents the mechanisms available to test your Ruby on Rails application. After an introduction to software testing in the Ruby on Rails context, the guide explains how to perform unit testing on your models and functional testing for the controllers. The guide also explains how Rails provides a generator to create an integration test skeleton. At the end, the guide proposes other popular testing approaches and plugins that could be used to test Ruby on Rails applications.

[27 Feb 2012 | No Comment | ]

RSpec is an open source Behavior-Driven Development (BDD) ruby package that lets you build a specification alongside your software. BDD is an approach to software development that combines Test-Driven Development (TDD), Domain Driven Design and Acceptance Test-Driven Planning. RSpec helps you do the TDD part of that equation, focusing on the documentation and design aspects of TDD.

[13 Feb 2012 | No Comment | ]

How do you do Test-Driven Development (TDD) with command-line tools? How does one make a failing test for a missing command-line option? This video answers these questions with some real-world examples.

[31 Jan 2012 | No Comment | ]

In those days where software tests are integrated in continuous integration cycles, it is a necessity that they run in a minimized amount of time. This article explains how through controlled memory usage, increased parallelism, transactional factory invocation, pragmatically judicious test refactoring and a few miscellaneous extras, it was possible to reduce the time needed to run the tests of a ruby on rails application in continuous-integration environments by a factor of ten.

[18 Jan 2012 | No Comment | ]

This video explains how to use the principles of Object Oriented Design to improve your Ruby on Rails code, supercharge your tests and find your coding rhythm.

[7 Nov 2011 | One Comment | ]

Behavior-driven development (BDD) is similar to test-driven development (TDD), but the tests for BDD are written in an easier-to-understand language so that developers and clients alike can clearly understand what is being tested. In this article based on chapter 2 of Rails 3 in Action, the authors discuss two tools for BDD: RSpec and Cucumber.

[3 Oct 2011 | No Comment | ]

In this blog post, Steve Madsen shares how to use RSpec on an OS/X machine to write unit tests for Objective-C classes. He provides a detailled step by step tutorial on how to install MacRuby, RSpec and how to set up your Cocoa (Mac or iOS) project to perform unit testing with RSpec.

[15 Aug 2011 | No Comment | ]

Story Driven Development (SDD) helps close the gap between the language of developers and product owners so they can clearly define when software is “done”. Readable and executable product requirements are now possible. We’ll explore tips for integrating SDD into your existing workflow and cover technical details for implementing and maintaining stories using cutting-edge tools and libraries.

[14 Jun 2011 | No Comment | ]

This video shows you how to write and run JavaScript integration tests with Capybara and Cucumber and unit tests with Evergreen and Jasmine. The goal is to inspire you to get started with frontend testing and point you in the right direction to do it.