Chapter 16Testing Command-Line Applications with Aruba

Command-line applications are the bread and butter of many programming tasks. Any programmer is familiar with common command-line applications like ls/dir, cp/copy, and cd. If you are a Linux or OS X user, you probably use them a lot—ps and kill for process management; grep, sed, and awk for file manipulation; and so on. Even cucumber is a command-line application.

You have probably written a couple of command-line applications or scripts yourself. Even a Rake task is an example of a command-line script. A command-line application usually starts its life as a small script, but often it evolves into a more elaborate program. While many people end up testing the internal logic of a command-line ...

Get The Cucumber Book, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.