Class Turn::Command
In: lib/turn/command.rb
Parent: Object

Turn - Pretty Unit Test Runner for Ruby

SYNOPSIS

  turn [OPTIONS] [RUN MODE] [OUTPUT MODE] [test globs...]

OPTIONS

  -h --help             display this help information
     --live             don't use loadpath
     --log              log results to a file
  -n --name=PATTERN     only run tests that match regexp PATTERN
  -c --case=PATTERN     only run testcases that match regexp PATTERN
  -I --loadpath=PATHS   add given PATHS to the $LOAD_PATH
  -r --requires=LIBS    require given LIBS before running tests
  -m --minitest         Force use of MiniTest framework.
  -b --backtrace=INT    Set the number of lines to show in backtrace.

RUN MODES

     --normal      run all tests in a single process [default]
     --solo        run each test in a separate process
     --cross       run each pair of test files in a separate process

OUTPUT MODES

  -O --outline     turn's original case/test outline mode [default]
  -P --progress    indicates progress with progress bar
  -D --dotted      test/unit's traditonal dot-progress mode
  -R --pretty      new pretty reporter
  -M --marshal     dump output as YAML (normal run mode only)
  -C --cue         interactive testing

Methods

main   main   new   option_parser  

Attributes

ansi  [R]  Force ANSI use on or off.
live  [R]  Do not use local loadpath.
loadpath  [R]  List of paths to add to $LOAD_PATH
log  [R]  Log output.
matchcase  [R]  Only run testcases matching this pattern.
natural  [R]  Use natural test case names.
outmode  [R]  Output mode.
pattern  [R]  Only run tests matching this pattern.
requires  [R]  Libraries to require before running tests.
runmode  [R]  Run mode.
trace  [R]  Enable full backtrace

Public Class methods

Shortcut for new.main(*argv)

Public Instance methods

Run command.

[Validate]