Test-drive the development of your command-line applications 3.88 http://spkr8.com/t/8523

Description:

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.

Comments on this Talk

Open-uri20120531-46-jnq2f6 dbrock, 31 May 08:44 PM

Brilliant! Thanks a lot for this talk!!

Have an account? Sign in or register.

Leave a Comment

4 Ratings: 3.88

Delivery: 3.75

Content: 4.00

Time & Location

September 30, 2011 — 04:20 PM
New Orleans (Map It)

Room: Room 1