Class | Spec::Runner::Options
In: | lib/spec/runner/options.rb
Parent: | Object

### Methods

add_example_group after_suite_parts before_suite_parts colour= custom_runner custom_runner? default_differ define_predicate_matchers differ_class= dry_run? example_line examples_run? examples_should_be_run? examples_should_not_be_run files_to_load formatter_options formatters heckle ignore_backtrace_patterns line_number_requested? load_class load_formatters load_heckle_runner mock_framework new number_of_examples parse_diff parse_example parse_format plugin_mock_framework remove_example_group require_ruby_debug run_examples set_spec_from_line_number sorted_files sorter stderr? which_heckle_runner

### Constants

FILE_SORTERS | = | { 'mtime' => lambda {|file_a, file_b| File.mtime(file_b) <=> File.mtime(file_a)}
EXAMPLE_FORMATTERS | = | { # Load these lazily for better speed 'silent' => ['spec/runner/formatter/silent_formatter', 'Formatter::SilentFormatter'], 'l' => ['spec/runner/formatter/silent_formatter', 'Formatter::SilentFormatter'], 'specdoc' => ['spec/runner/formatter/specdoc_formatter', 'Formatter::SpecdocFormatter'], 's' => ['spec/runner/formatter/specdoc_formatter', 'Formatter::SpecdocFormatter'], 'nested' => ['spec/runner/formatter/nested_text_formatter', 'Formatter::NestedTextFormatter'], 'n' => ['spec/runner/formatter/nested_text_formatter', 'Formatter::NestedTextFormatter'], 'html' => ['spec/runner/formatter/html_formatter', 'Formatter::HtmlFormatter'], 'h' => ['spec/runner/formatter/html_formatter', 'Formatter::HtmlFormatter'], 'progress' => ['spec/runner/formatter/progress_bar_formatter', 'Formatter::ProgressBarFormatter'], 'p' => ['spec/runner/formatter/progress_bar_formatter', 'Formatter::ProgressBarFormatter'], 'failing_examples' => ['spec/runner/formatter/failing_examples_formatter', 'Formatter::FailingExamplesFormatter'], 'e' => ['spec/runner/formatter/failing_examples_formatter', 'Formatter::FailingExamplesFormatter'], 'failing_example_groups' => ['spec/runner/formatter/failing_example_groups_formatter', 'Formatter::FailingExampleGroupsFormatter'], 'g' => ['spec/runner/formatter/failing_example_groups_formatter', 'Formatter::FailingExampleGroupsFormatter'], 'profile' => ['spec/runner/formatter/profile_formatter', 'Formatter::ProfileFormatter'], 'o' => ['spec/runner/formatter/profile_formatter', 'Formatter::ProfileFormatter'], 'textmate' => ['spec/runner/formatter/text_mate_formatter', 'Formatter::TextMateFormatter']

### Attributes

argv | [RW] |
autospec | [RW] |
backtrace_tweaker | [RW] |
colour | [R] |
context_lines | [RW] |
debug | [RW] |
diff_format | [RW] |
differ_class | [R] |
dry_run | [RW] |
error_stream | [RW] |
example_groups | [R] |
examples | [R] |
filename_pattern | [RW] |
files | [R] |
heckle_runner | [RW] |
line_number | [RW] |
loadby | [RW] |
output_stream | [RW] |
profile | [RW] |
reporter | [RW] |
reverse | [RW] |
timeout | [RW] |
user_input_for_runner | [RW] |
verbose | [RW] |

### Public Class methods

new(error_stream, output_stream)

### Public Instance methods

add_example_group(example_group)
after_suite_parts()
before_suite_parts()
colour=(colour)
dry_run?()
example_line()
examples_run?()
examples_should_not_be_run()
files_to_load()
formatter_options()
formatters()
line_number_requested?()
load_formatters(format_options, formatters)
load_heckle_runner(heckle)
mock_framework()
number_of_examples()
parse_diff(format)
parse_example(example)
parse_format(format_arg)
remove_example_group(example_group)
require_ruby_debug()
run_examples()
which_heckle_runner()

### Protected Instance methods

custom_runner()
custom_runner?()
default_differ()
define_predicate_matchers()
differ_class=(klass)
examples_should_be_run?()
heckle()
ignore_backtrace_patterns()
load_class(name, kind, option)
plugin_mock_framework()
set_spec_from_line_number()
sorted_files()
sorter()
stderr?()

[Validate]