Class: XCPretty::RSpec

Inherits:
Formatter show all
Defined in:
lib/xcpretty/formatters/rspec.rb

Constant Summary collapse

FAIL =
"F"
PASS =
"."
PENDING =
"P"

Constants inherited from Formatter

Formatter::ASCII_ERROR, Formatter::ERROR

Constants included from FormatMethods

FormatMethods::EMPTY

Constants included from ANSI

ANSI::COLORS, ANSI::EFFECT, ANSI::FORMATTED_MATCHER

Instance Attribute Summary

Attributes inherited from Formatter

#parser

Attributes included from ANSI

#colorize

Instance Method Summary collapse

Methods inherited from Formatter

#format_compile_error, #format_duplicate_symbols, #format_error, #format_test_summary, #format_undefined_symbols, #initialize, #pretty_format, #use_unicode?

Methods included from FormatMethods

#format_analyze, #format_build_target, #format_check_dependencies, #format_clean, #format_clean_remove, #format_clean_target, #format_codesign, #format_compile, #format_compile_command, #format_compile_error, #format_compile_xib, #format_copy_strings_file, #format_cpresource, #format_duplicate_symbols, #format_error, #format_generate_dsym, #format_libtool, #format_linking, #format_pbxcp, #format_phase_script_execution, #format_preprocess, #format_process_info_plist, #format_process_pch, #format_test_run_finished, #format_test_run_started, #format_test_suite_started, #format_test_summary, #format_tiffutil, #format_touch, #format_undefined_symbols

Methods included from ANSI

#ansi_parse, #applied_effects, #colorize?, #cyan, #green, #red, #strip, #white, #yellow

Constructor Details

This class inherits a constructor from XCPretty::Formatter

Instance Method Details

#format_failing_test(test_suite, test_case, reason, file) ⇒ Object



17
18
19
# File 'lib/xcpretty/formatters/rspec.rb', line 17

def format_failing_test(test_suite, test_case, reason, file)
  red(FAIL)
end

#format_passing_test(suite, test_case, time) ⇒ Object



13
14
15
# File 'lib/xcpretty/formatters/rspec.rb', line 13

def format_passing_test(suite, test_case, time)
  green(PASS)
end

#format_pending_test(suite, test_case) ⇒ Object



21
22
23
# File 'lib/xcpretty/formatters/rspec.rb', line 21

def format_pending_test(suite, test_case)
  yellow(PENDING)
end

#optional_newlineObject



9
10
11
# File 'lib/xcpretty/formatters/rspec.rb', line 9

def optional_newline
  ''
end