Permalink
Switch branches/tags
2-0-stable 2-2-maintenance 2-3-maintenance 2-5-maintenance 2-6-maintenance 2-7-maintenance 2-9-maintenance 2-10-maintenance 2-11-maintenance 2-14-maintenance 2-99-maintenance 3-0-maintenance 3-1-maintenance 3-2-maintenance 3-3-maintenance 3-4-maintenance 3-5-maintenance 3-6-maintenance 3-7-maintenance 3-8-maintenance 304-less-verbose-metadata add-formatter-regression-tests-rebased add-formatter-regression-tests add_message_to_html_formatter additional-threadsafe-benchmark autoload_other_rspec_libs before-all-pending-fix bisect-before-rebase bundler-raketask checking-jruby-backtrace classes_and_methods clean-up-world config-prioritization custom_ordering_strategies delay-drb-loading deprecation-formatter enable-rubocop events expose_config_options extract_backtrace_filtering filtering_all_hooks_with_metadata fix-generated-descriptions-for-nested-matchers frozen-string-literal hating-on-html-fixtures hooks html-formatter-enhancements improve-deprecations include-in-singleton-class-of-group integration issue-321 issue-799 issue-835 issue-1208-rebased issue-1208 issue_490 let-definitions-eagerly-included let_subject_super limit_monkey_patching_of_describe location-filtering-with-shared-contexts master minimal_debugger mocha-integration-issue more-powerful-include-use-config-hooks multiple-line-numbers myron/fix-inclusion-rules myron/fix-output-stream-followups pending-fixes prevent_define_method_leaking_as_public pry pull-1822-using-include refactor-metadata-spike refactor_metadata remove-evals rerun-failures-spike rework-cukes-integration rspec-mocks-configuration safely_clear_shared_example_groups_214 simplify-exclusion-filter tmp updated-benchmarks-for-pr-1858
Nothing to show
Find file Copy path
30 lines (24 sloc) 778 Bytes
RSpec::Support.require_rspec_core "formatters/base_text_formatter"
RSpec::Support.require_rspec_core "formatters/console_codes"
module RSpec
module Core
module Formatters
# @private
class ProgressFormatter < BaseTextFormatter
Formatters.register self, :example_passed, :example_pending, :example_failed, :start_dump
def example_passed(_notification)
output.print ConsoleCodes.wrap('.', :success)
end
def example_pending(_notification)
output.print ConsoleCodes.wrap('*', :pending)
end
def example_failed(_notification)
output.print ConsoleCodes.wrap('F', :failure)
end
def start_dump(_notification)
output.puts
end
end
end
end
end