Sha256: 9a965b191e88625a3b90ee98ffd13d0feb3693d9f314ba6e4c093b83ddd418ac

Contents?: true

Size: 610 Bytes

Versions: 4

Compression:

Stored size: 610 Bytes

Contents

require 'rake/testtask'
require 'yard'
require "bundler/gem_tasks"

task :default => ['coverage:console']

Rake::TestTask.new
YARD::Rake::YardocTask.new

namespace :coverage do
  desc "Generates and outputs code coverage report."
  task :console => :test do
    require 'cover_me'
    CoverMe.config do |conf|
      conf.formatter = CoverMe::ConsoleFormatter
    end
    CoverMe.complete!
  end

  desc "Generates and opens code coverage report."
  task :html => :test do
    require 'cover_me'
    CoverMe.config do |conf|
      conf.formatter = CoverMe::HtmlFormatter
    end
    CoverMe.complete!
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
css_inliner-0.3.0 Rakefile
css_inliner-0.2.1 Rakefile
css_inliner-0.2.0 Rakefile
css_inliner-0.1.1 Rakefile