piotrmurach/strings-ansi

View on GitHub
tasks/coverage.rake

Summary

Maintainability
Test Coverage
# frozen_string_literal: true

desc "Measure code coverage"
task :coverage do
  begin
    original, ENV["COVERAGE"] = ENV["COVERAGE"], "true"
    Rake::Task["spec"].invoke
  ensure
    ENV["COVERAGE"] = original
  end
end