Skip to main content


developerWorks  >  Open source | Linux  >

Test-first Ruby programming

developerWorks

Level: Introductory

Pat Eyler (pat.eyler@gmail.com), Freelance Writer, Seattle Ruby Brigade

24 May 2005

Register now or sign in using your IBM ID and password.

This tutorial will build a simple Ruby application following Test First principles. It will start with an overview of the Test::Unit library that ships with Ruby then move on to writing tests from a specification and writing code to fulfill those test. It will touch on tools like ZenTest and unit_diff, and on the process of refactoring. The tutorial will be built around a single programming example.

Prerequisites

To complete this tutorial, you need a basic understanding of the Ruby programming language, including the ability to write small programs. If you're on a Linux® or Mac OS X machine, you're almost certainly covered for the first prerequisite. If your distribution doesn't ship with Ruby, it's easy to build from source, but you should let the distributor know that you want it in the next release. If you're working on a Microsoft® Windows® system, it has a nice one-click installer.


System requirements

Ruby V1.8.2



Formats

html, pdf


Share this....

digg Digg this story del.icio.us del.icio.us Slashdot Slashdot it!


Back to top


Document options

Document options requiring JavaScript are not displayed


My developerWorks needs you!

Connect to your technical community