From f49e5a8610906db261ab87ae65acbd4132dd26fc Mon Sep 17 00:00:00 2001 From: Pau Perez Date: Thu, 1 Jul 2021 13:31:16 +0200 Subject: [PATCH] Fix coverage in development skipping Codecov The way we have it set up, Simplecov generates a report in Codecov's format and tries to send it to them, which fails. This gets us back to the former Simplecov setup. This lets you check the visual coverage report navigating to `coverage/index.html`. --- .simplecov | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.simplecov b/.simplecov index d60a2ab165..4fc88f9a4d 100755 --- a/.simplecov +++ b/.simplecov @@ -16,5 +16,7 @@ SimpleCov.start 'rails' do add_filter '/lib/tasks/sample_data/' end -require 'codecov' -SimpleCov.formatter = SimpleCov::Formatter::Codecov +if ENV['CI'] + require 'codecov' + SimpleCov.formatter = SimpleCov::Formatter::Codecov +end