Sha256: de5a1eabd8f732114fdb1cdbe65d74edf8ef13d3e71598f6fd033206dfddb695
Contents?: true
Size: 493 Bytes
Versions: 6
Compression:
Stored size: 493 Bytes
Contents
#!/usr/bin/env rake require "bundler/gem_tasks" require "rspec/core/rake_task" desc 'Run all tests' task :test => [:spec] task :default => [:coverage] desc "Run all rspec tests" RSpec::Core::RakeTask.new 'spec' do |t| t.pattern = 'spec/**/*_spec.rb' t.rspec_opts = '-fd -c' end desc "Run all rspec 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
6 entries across 6 versions & 1 rubygems