Sha256: d126ed5f69de225767489e90107b8601a119e44ded27c033b5e385abd3db4b63

Contents?: true

Size: 515 Bytes

Versions: 1

Compression:

Stored size: 515 Bytes

Contents

require 'rake'
require 'rake/testtask'
require 'rspec/core/rake_task'

task :default=>[:test]

desc "Run unit tests and spec tests with rspec so that they show together when running the coverage report"
RSpec::Core::RakeTask.new('spec') do |t|
  t.pattern = ['spec/**/*_spec.rb']
  t.rspec_opts = " -fd -c"
end

desc "Run all tests and generate a coverage report"
task :coverage do
  ENV['COVERAGE'] = 'true'
  Rake::Task['spec'].invoke
  `open coverage/index.html` if RUBY_PLATFORM.downcase.include?("darwin")
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sinatra-scaffolder-0.0.3 Rakefile