Sha256: b15f8555bac5a791f0bb8c8b3e1651af00db12e63ce9ae4c09b4f1c4130900d9
Contents?: true
Size: 579 Bytes
Versions: 8
Compression:
Stored size: 579 Bytes
Contents
namespace :test do desc 'Check test coverage' task :coverage do rm_f "coverage" system("rcov -x '/Library/Ruby/Gems/1.8/gems/' --sort coverage #{File.join(File.dirname(__FILE__), 'test/*_test.rb')}") system("open #{File.join(File.dirname(__FILE__), 'coverage/index.html')}") if PLATFORM['darwin'] end desc 'Remove coverage products' task :clobber_coverage do rm_r 'coverage' rescue nil end end require 'rake/testtask' Rake::TestTask.new(:test) do |test| test.libs << 'lib' << 'test' test.pattern = 'test/**/*_test.rb' test.verbose = true end
Version data entries
8 entries across 8 versions & 3 rubygems