Class RSpec::Core::RakeTask
In: lib/rspec/core/rake_task.rb
Parent: ::Rake::TaskLib

Methods

Included Modules

::Rake::DSL

Attributes

fail_on_error  [RW]  Whether or not to fail Rake when an error occurs (typically when examples fail).

default:

  true
failure_message  [RW]  A message to print to stderr when there are failures.
name  [RW]  Name of task.

default:

  :spec
pattern  [RW]  Glob pattern to match files.

default:

  'spec/**/*_spec.rb'
rcov  [RW]  Use rcov for code coverage?

default:

  false
rcov_opts  [RW]  Command line options to pass to rcov.

default:

  nil
rcov_path  [RW]  Path to rcov.

default:

  'rcov'
rspec_opts  [RW]  Command line options to pass to rspec.

default:

  nil
rspec_path  [RW]  Path to rspec

default:

  'rspec'
ruby_opts  [RW]  Command line options to pass to ruby.

default:

  nil
verbose  [RW]  Use verbose output. If this is set to true, the task will print the executed spec command to stdout.

default:

  true

Public Class methods

Public Instance methods

@deprecated Has no effect. The rake task now checks ENV[‘BUNDLE_GEMFILE’] instead.

@deprecated Has no effect. The rake task now checks ENV[‘BUNDLE_GEMFILE’] instead.

@deprecated Use rspec_opts instead.

Command line options to pass to rspec.

default:

  nil

@deprecated Use ruby_opts="-w" instead.

When true, requests that the specs be run with the warning flag set. e.g. "ruby -w"

default:

  false

[Validate]