Sha256: 728ffb0415cd9dbae79df7a0f9b5386729e506345ed0eb5b47c51d586bf33a15

Contents?: true

Size: 515 Bytes

Versions: 61

Compression:

Stored size: 515 Bytes

Contents

require "rspec/core/rake_task"

namespace :spec do
  RSpec::Core::RakeTask.new(:simplecov) do |t|
    t.pattern = FileList['spec/**/*_spec.rb']
    t.rspec_opts = ['--color', '--format', 'documentation']
  end

  namespace :simplecov do
    desc "Browse the code coverage report."
    task :browse => "spec:simplecov" do
      require "launchy"
      Launchy.open("coverage/index.html")
    end
  end
end

desc "Alias to spec:simplecov"
task "spec" => "spec:simplecov"

task "clobber" => ["spec:clobber_simplecov"]

Version data entries

61 entries across 50 versions & 12 rubygems

Version Path
addressable-2.4.0 tasks/rspec.rake