Sha256: a07bf418e231ceb415b4a5fecc90af7e83c018485a2c0668d9a5555268b2d35c
Contents?: true
Size: 762 Bytes
Versions: 2
Compression:
Stored size: 762 Bytes
Contents
= cmd_line_test - Extends Shoulda or Test::Unit with macros for testing command line apps = Basic Usage == Installation sudo gem install fkocherga-cmd_line_test == Example If you are about to start writing new command line utility MyCommandLineApp, you probably want to specify its options and behavior, likely in form of tests. This gem is aimed to simplify creation of such tests: requrie 'cmd_line_test' class CliTest < Test::Unit::TestCase run_command_line_as {MyCommandLineApp.run} run_with_options ["--help"] do assert_successful_run assert_out_contains /Usage:/ end end = Shortcumings Only tested on the 1.8.7 Ruby implementation and with Shoulda 2.10.1 = License cmd_line_test is released under the MIT license.
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fkocherga-cmd_line_test-0.1.2 | README.rdoc |
fkocherga-cmd_line_test-0.1.3 | README.rdoc |