From 179988964bd1d7971eb34b826afedf7c76e335f8 Mon Sep 17 00:00:00 2001 From: Hannah Ramadan Date: Thu, 15 Aug 2024 12:50:58 -0700 Subject: [PATCH] Undo changes --- lib/tasks/coverage_report.rake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/tasks/coverage_report.rake b/lib/tasks/coverage_report.rake index c067028d8e..79e1fdd06a 100644 --- a/lib/tasks/coverage_report.rake +++ b/lib/tasks/coverage_report.rake @@ -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