Module: TestConsole::Help

Includes:
Colors, Config
Included in:
TestConsole
Defined in:
lib/test_console/help.rb

Constant Summary

Constants included from Colors

Colors::COLORS

Instance Method Summary collapse

Methods included from Colors

#color, #reset_color, #start_color

Instance Method Details

#helpObject

Help text



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/test_console/help.rb', line 9

def help
"
#{color('Test Console help', :bold)}
=================

#{color('Run Commands', :bold)} : #{color(run_commands.join(', '), :bold)}
To run a test, type 'run' followed by the path to the test
You can also append a string or regex to filter by

Examples:
  run functional/
  run functional/application_controller_test.rb
  run functional/application_controller_test.rb 'PartOfTestName'
  run functional/application_controller_test.rb /PartOfTestName/i

#{color('Rerun Commands', :bold)} : #{color(rerun_commands.join(', '), :bold)}
Reruns only the tests that failed or errored in the previous run

#{color('Quit Commands', :bold)} : #{color(quit_commands.join(', '), :bold)}
Exits the console
"
end