Skip to content

Commit

Permalink
Undo changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahramadan committed Aug 15, 2024
1 parent be2d714 commit 1799889
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/tasks/coverage_report.rake
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ if ENV['CI']

SimpleCov.coverage_dir('coverage_results')

SimpleCov.collate(Dir['*/coverage_*/.resultset-*.json']) do
SimpleCov.collate(Dir['*/coverage_*/.resultset.json']) do
formatter SimpleCov::Formatter::HTMLFormatter
refuse_coverage_drop
end

Dir['coverage_{[!r][!e][!s][!u][!l][!t][!s]}*'].each { |dir| FileUtils.rm_rf(dir) }
Dir['lib/coverage_{[!r][!e][!s][!u][!l][!t][!s]}*'].each { |dir| FileUtils.rm_rf(dir) }
end

desc 'Removes all coverage_* directories'
task :clear do
require 'fileutils'
Dir['coverage_*'].each { |dir| FileUtils.rm_rf(dir) }
Dir['lib/coverage_*'].each { |dir| FileUtils.rm_rf(dir) }
end
end
end

0 comments on commit 1799889

Please sign in to comment.