Rakefile in health-data-standards-0.7.1 vs Rakefile in health-data-standards-0.8.0

- old
+ new

@@ -1,12 +1,22 @@ 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 -task :test => [:test_unit] do - require 'cover_me' - CoverMe.complete! -end \ No newline at end of file +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