From 923fcd3664cd966d0f16392e5e3793f8a426cd26 Mon Sep 17 00:00:00 2001 From: Yuri Smirnov Date: Fri, 13 Sep 2024 23:38:32 +0300 Subject: [PATCH] force 100% coverage --- .github/workflows/ci.yml | 4 ---- Gemfile | 1 - Gemfile.lock | 4 +--- spec/spec_helper.rb | 16 +++++----------- 4 files changed, 6 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8928094..5041aa0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,3 @@ jobs: bundler-cache: true - run: bundle exec rake - - - uses: coverallsapp/github-action@v2 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/Gemfile b/Gemfile index 9e2eba2..2d9963b 100644 --- a/Gemfile +++ b/Gemfile @@ -12,4 +12,3 @@ gem "rake" gem "rspec" gem "rubocop-config-umbrellio" gem "simplecov" -gem "simplecov-lcov" diff --git a/Gemfile.lock b/Gemfile.lock index 52a5fb8..116c641 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -111,11 +111,10 @@ GEM simplecov-html (~> 0.11) simplecov_json_formatter (~> 0.1) simplecov-html (0.13.1) - simplecov-lcov (0.8.0) simplecov_json_formatter (0.1.4) tzinfo (2.0.6) concurrent-ruby (~> 1.0) - unicode-display_width (2.5.0) + unicode-display_width (2.6.0) PLATFORMS ruby @@ -131,7 +130,6 @@ DEPENDENCIES rspec rubocop-config-umbrellio simplecov - simplecov-lcov BUNDLED WITH 2.4.22 diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 4220468..73e63ad 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,19 +1,13 @@ # frozen_string_literal: true require "simplecov" -require "simplecov-lcov" -SimpleCov::Formatter::LcovFormatter.config do |config| - config.report_with_single_file = true - config.single_report_path = "coverage/lcov.info" -end - -SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([ - SimpleCov::Formatter::HTMLFormatter, - SimpleCov::Formatter::LcovFormatter, -]) +SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter -SimpleCov.start +SimpleCov.start do + enable_coverage(:branch) + minimum_coverage(line: 100, branch: 100) +end require "memery" require "active_support/concern"