Module: TestConsole

Extended by:
Builder, CliParser, Colors, Help, Monitor, Output, Runner
Defined in:
lib/test_console.rb,
lib/test_console/help.rb,
lib/test_console/colors.rb,
lib/test_console/config.rb,
lib/test_console/output.rb,
lib/test_console/runner.rb,
lib/test_console/builder.rb,
lib/test_console/history.rb,
lib/test_console/monitor.rb,
lib/test_console/utility.rb,
lib/test_console/version.rb,
lib/test_console/cli_parser.rb

Defined Under Namespace

Modules: Builder, CliParser, Colors, Config, Help, History, Monitor, Output, Runner, Utility

Constant Summary collapse

VERSION =
"0.0.7"

Constants included from Colors

Colors::COLORS

Class Method Summary collapse

Methods included from Runner

abort, rerun, run, run_suite

Methods included from Colors

color, reset_color, start_color

Methods included from Output

error, out, print_negatives, print_result_summary

Methods included from Monitor

auto_reload!, stop_folders_changed?, views_changed?

Methods included from Help

help

Methods included from CliParser

included

Methods included from CliParser::Parsers

#command, #file, #filter

Methods included from Builder

filter_tests, make_suite_from_file, make_suite_from_folder

Class Method Details

.commands(type) ⇒ Object

Returns an array of commands for the specfied function. Valid commands are:

:run
:rerun
:quit
:help


14
15
16
17
# File 'lib/test_console/config.rb', line 14

def self.commands(type)
  command = "#{type}_commands".to_sym # Deliberately not to_s-ing to avoid :
  TestConsole::Config.send(command) if TestConsole::Config.respond_to?(command)
end

.dieObject



26
27
28
29
# File 'lib/test_console.rb', line 26

def die
  History.write
  exit
end

.setup {|Config| ... } ⇒ Object

Yields:



2
3
4
# File 'lib/test_console/config.rb', line 2

def self.setup
  yield Config
end