Test-drive the development of your command-line applications

A session at RubyConf 2011

Friday 30th September, 2011

2:20pm to 3:00pm (CST)

Rubyists love testing, and test-driven-development is becoming THE way to write code. But, do we do this with our command-line tools? How DO you write a test that your awesome application cleans up its temp files? How does one make a failing test for a missing command-line option? What's the easiest way to check our app's exit codes? This talk will answer these questions with some real-world examples. We'll talk briefly about the challenges particular to testing command-line apps, and then dive into some code where we'll show off techniques for organizing code for testability, tools for interacting with the filesystem, and how to create full-blown acceptance tests for your command-line app. In no time, you'll be able to write your command-line apps the same way you write your other code: test-first.

About the speaker

This person is speaking at this event.
David Copeland

Programmer that gets things done…and ships

Coverage of this session

Sign in to add slides, notes or videos to this session

RubyConf 2011

United States United States, New Orleans

29th September to 1st October 2011

Tell your friends!


Time 2:20pm3:00pm CST

Date Fri 30th September 2011

Short URL


Official session page


View the schedule



See something wrong?

Report an issue with this session