Class: XCPretty::RSpec
- Defined in:
- lib/xcpretty/formatters/rspec.rb
Constant Summary collapse
- FAIL =
"F"
- PASS =
"."
- PENDING =
"P"
- MEASURING =
'T'
Constants inherited from Formatter
Formatter::ASCII_ERROR, Formatter::ASCII_WARNING, Formatter::ERROR, Formatter::WARNING
Constants included from FormatMethods
Constants included from ANSI
ANSI::COLORS, ANSI::EFFECT, ANSI::FORMATTED_MATCHER
Instance Attribute Summary
Attributes inherited from Formatter
Attributes included from ANSI
Instance Method Summary collapse
- #format_failing_test(test_suite, test_case, reason, file) ⇒ Object
- #format_measuring_test(suite, test_case, time) ⇒ Object
- #format_passing_test(suite, test_case, time) ⇒ Object
- #format_pending_test(suite, test_case) ⇒ Object
- #optional_newline ⇒ Object
Methods inherited from Formatter
#finish, #format_compile_error, #format_compile_warning, #format_duplicate_symbols, #format_error, #format_file_missing_error, #format_ld_warning, #format_other, #format_test_summary, #format_undefined_symbols, #format_will_not_be_code_signed, #initialize, #pretty_format, #use_unicode?
Methods included from FormatMethods
#format_aggregate_target, #format_analyze, #format_analyze_target, #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_storyboard, #format_compile_warning, #format_compile_xib, #format_copy_header_file, #format_copy_plist_file, #format_copy_strings_file, #format_cpresource, #format_duplicate_symbols, #format_error, #format_file_missing_error, #format_generate_dsym, #format_ld_warning, #format_libtool, #format_linking, #format_other, #format_pbxcp, #format_phase_script_execution, #format_phase_success, #format_preprocess, #format_process_info_plist, #format_process_pch, #format_process_pch_command, #format_shell_command, #format_test_run_finished, #format_test_run_started, #format_test_suite_started, #format_test_summary, #format_tiffutil, #format_touch, #format_undefined_symbols, #format_warning, #format_write_auxiliary_files, #format_write_file
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
18 19 20 |
# File 'lib/xcpretty/formatters/rspec.rb', line 18 def format_failing_test(test_suite, test_case, reason, file) red(FAIL) end |
#format_measuring_test(suite, test_case, time) ⇒ Object
26 27 28 |
# File 'lib/xcpretty/formatters/rspec.rb', line 26 def format_measuring_test(suite, test_case, time) yellow(MEASURING) end |
#format_passing_test(suite, test_case, time) ⇒ Object
14 15 16 |
# File 'lib/xcpretty/formatters/rspec.rb', line 14 def format_passing_test(suite, test_case, time) green(PASS) end |
#format_pending_test(suite, test_case) ⇒ Object
22 23 24 |
# File 'lib/xcpretty/formatters/rspec.rb', line 22 def format_pending_test(suite, test_case) yellow(PENDING) end |
#optional_newline ⇒ Object
10 11 12 |
# File 'lib/xcpretty/formatters/rspec.rb', line 10 def optional_newline '' end |