Sha256: aed625debf4e5ecfbaeb919c5759a884004051ce0ac79ada26b603f329d38cfb
Contents?: true
Size: 474 Bytes
Versions: 14
Compression:
Stored size: 474 Bytes
Contents
require 'rake/testtask' require 'cane/rake_task' require "simplecov" Rake::TestTask.new(:test_unit) do |t| t.libs << "test" t.test_files = FileList['test/**/*_test.rb'] t.verbose = true end Cane::RakeTask.new(:quality) do |cane| cane.abc_max = 45 # cane.add_threshold 'coverage/covered_percent', :>=, 97 cane.style_measure = 120 cane.no_style = true cane.no_doc = true end task :test => [:test_unit, :quality] do system("open coverage/index.html") end
Version data entries
14 entries across 14 versions & 1 rubygems