Sha256: 40ae69bff18ff87bbeb39a8589fc8359e3b1354f6eaa77684526fea961711699
Contents?: true
Size: 823 Bytes
Versions: 2
Compression:
Stored size: 823 Bytes
Contents
#!/usr/bin/env rake require 'bundler' Bundler.setup require "bundler/gem_tasks" require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) do |t| t.rspec_opts = %w[--profile --format progress] t.ruby_opts = "-Ispec -rsimplecov_setup" end # TODO: bump this up as test coverage increases. It was 90.29 when I last updated it on 2012-05-21. min_coverage_threshold = 90.0 desc "Checks the spec coverage and fails if it is less than #{min_coverage_threshold}%" task :check_coverage do percent = File.read("./coverage/coverage_percent.txt").to_f if percent < min_coverage_threshold raise "Spec coverage was not high enough: #{percent.round(2)}%" else puts "Nice job! Spec coverage is still at least #{min_coverage_threshold}%" end end task default: [:spec, :check_coverage] require 'qless/tasks'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
qless-0.9.2 | Rakefile |
qless-0.9.1 | Rakefile |