Sha256: 60a7567df9fa9aebedccf59b7d228a1623a7efe6e5fb1ee33f136814206d0ba3
Contents?: true
Size: 557 Bytes
Versions: 77
Compression:
Stored size: 557 Bytes
Contents
# frozen_string_literal: true require "rspec/core/rake_task" namespace :spec do RSpec::Core::RakeTask.new(:simplecov) do |t| t.pattern = FileList['spec/**/*_spec.rb'] t.rspec_opts = %w[--color --format documentation] unless ENV["CI"] 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
77 entries across 77 versions & 12 rubygems