Test-drive the development of your command-line applications by David Copeland
684 views · Published 19 January 2012 · 24:25 · Indexed 2 October 2026
Channel: Confreaks · 2012 · Science & Technology
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. Help us caption & translate this video! http://amara.org/v/FGk5/
More from this channel
-
40:58
Jruby Polyglot Heaven by Thomas E Enebo and Charles Oliver Nutter
-
36:46
Your tests are lying to you by Chris Parsons
-
23:46
KidsRuby: Think Of The Children! by Ron Evans
-
38:28
Just Say No To :nodoc: and Document Your Code! by Loren Segal
-
40:10
Next Level Virtual Machine Maneuver! by Mitchell Hashimoto
-
34:59
MongoMapper, Mixins, and Migrations - a look at managing data-model complexity by Tim Connor
-
42:19
Ruby Conf 2011 Threading versus Evented by Dr Nic Williams
-
35:49
Modern Databases by Eric Redmond