~/talk

Test-drive the development of your command-line applications

Talkat RubyConf 2011 · 2011-09-29..10-01· [testing]
slides:none on file

Builds a dotfiles installer called full_stop from a methadone template, wires up Cucumber + Aruba to run acceptance scenarios, and uses unit tests with mocks to simulate failures. Tests set HOME environment to a temp dir so cloning and symlinking never touch the real home. Replaces backtick shells with system, extracts a CLI class, adds optionparser help, wraps operations in exceptions and a sh! helper. Result: green features and unit tests and a refactor that keeps behavior intact.

AI-written summary · about

  1. 0:00Start
  2. 3:22Challenges for CLI
  3. 3:52CLI apps tend to be implemented on production
  4. 21:26Horrible backtrace
  5. 28:04Start with a template project
  6. 28:29Get to unit tests
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.