Class: RSpec::Conductor::Formatters::Plain
- Inherits:
-
Base
- Object
- Base
- RSpec::Conductor::Formatters::Plain
show all
- Defined in:
- lib/rspec/conductor/formatters/plain.rb
Constant Summary
Constants included
from Util::ANSI
Util::ANSI::ANSI_SEQUENCE_REGEX, Util::ANSI::COLOR_CODES, Util::ANSI::VISIBLE_CHAR_GROUP_REGEX
Instance Method Summary
collapse
Methods inherited from Base
#colorize, #handle_worker_stderr, #handle_worker_stdout, #initialize, #print_debug, #print_retry_message, #print_shutdown_banner, #print_slowest, #print_startup_banner, #print_summary
Methods included from Util::ANSI
clear_line, clear_line_forward, color_code, colorize, cursor_back, cursor_column, cursor_down, cursor_end_of_line, cursor_forward, cursor_up, split_visible_char_groups, tty_height, tty_width, visible_chars
Instance Method Details
#example_failed(_message) ⇒ Object
15
16
17
|
# File 'lib/rspec/conductor/formatters/plain.rb', line 15
def example_failed(_message)
print "F", :red
end
|
#example_passed(_message) ⇒ Object
11
12
13
|
# File 'lib/rspec/conductor/formatters/plain.rb', line 11
def example_passed(_message)
print ".", :green
end
|
#example_pending(_message) ⇒ Object
23
24
25
|
# File 'lib/rspec/conductor/formatters/plain.rb', line 23
def example_pending(_message)
print "*", :yellow
end
|
#example_retried(_message) ⇒ Object
19
20
21
|
# File 'lib/rspec/conductor/formatters/plain.rb', line 19
def example_retried(_message)
print "R", :magenta
end
|
#handle_worker_message(_worker_process, message, _suite_run) ⇒ Object
7
8
9
|
# File 'lib/rspec/conductor/formatters/plain.rb', line 7
def handle_worker_message(_worker_process, message, _suite_run)
public_send(message[:type], message) if respond_to?(message[:type])
end
|