Sha256: ab691b53794147dc284a26d47f8bb1a9cd1e3a80c18b7c10377f1c72e93bfa14

Contents?: true

Size: 1.88 KB

Versions: 13

Compression:

Stored size: 1.88 KB

Contents

# ## Built-in Formatters
#
# * progress (default) - prints dots for passing examples, `F` for failures, `*` for pending
# * documentation - prints the docstrings passed to `describe` and `it` methods (and their aliases)
# * html
# * textmate - html plus links to editor
# * json - useful for archiving data for subsequent analysis
#
# The progress formatter is the default, but you can choose any one or more of
# the other formatters by passing with the `--format` (or `-f` for short)
# command-line option, e.g.
#
#     rspec --format documentation
#
# You can also send the output of multiple formatters to different streams, e.g.
#
#     rspec --format documentation --format html --out results.html
#
# This example sends the output of the documentation formatter to `STDOUT`, and
# the output of the html formatter to results.html.
#
# ## Custom Formatters
#
# You can tell RSpec to use a custom formatter by passing its path and name to
# the `rspec` commmand. For example, if you define MyCustomFormatter in
# path/to/my_custom_formatter.rb, you would type this command:
#
#     rspec --require path/to/my_custom_formatter.rb --format MyCustomFormatter
#
# The reporter calls every formatter with this protocol:
#
# * `start(expected_example_count)`
# * zero or more of the following
#   * `example_group_started(group)`
#   * `example_started(example)`
#   * `example_passed(example)`
#   * `example_failed(example)`
#   * `example_pending(example)`
#   * `message(string)`
# * `stop`
# * `start_dump`
# * `dump_pending`
# * `dump_failures`
# * `dump_summary(duration, example_count, failure_count, pending_count)`
# * `seed(value)`
# * `close`
#
# You can either implement all of those methods or subclass
# `RSpec::Core::Formatters::BaseTextFormatter` and override the methods you want
# to enhance.
#
# @see RSpec::Core::Formatters::BaseTextFormatter
# @see RSpec::Core::Reporter
module RSpec::Core::Formatters
end

Version data entries

13 entries across 13 versions & 6 rubygems

Version Path
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/rspec-core-2.13.0/lib/rspec/core/formatters.rb
sshp-0.0.2 vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters.rb
sshp-0.0.1 vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters.rb
sidekiq-statsd-0.1.1 vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters.rb
sidekiq-statsd-0.1.0 vendor/ruby/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/formatters.rb
vagrant-actionio-0.0.9 vendor/bundle/gems/rspec-core-2.13.0/lib/rspec/core/formatters.rb
rspec-core-2.13.1 lib/rspec/core/formatters.rb
rspec-core-2.13.0 lib/rspec/core/formatters.rb
remq-0.0.4 vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/formatters.rb
remq-0.0.3 vendor/bundle/gems/rspec-core-2.12.2/lib/rspec/core/formatters.rb
rspec-core-2.12.2 lib/rspec/core/formatters.rb
rspec-core-2.12.1 lib/rspec/core/formatters.rb
rspec-core-2.12.0 lib/rspec/core/formatters.rb