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.
It discusses the challenges specific to testing command-line apps and then presents techniques for organizing code for testability, tools for interacting with the filesystem, and how to create full-blown acceptance tests for your command-line applications. You will be able to write your command-line applications the same way you write your other code: test-first.
Video Producer: Golden Gate Ruby Conference