From 6562e3abd728f41c224728e4bd2561bc5e1483b7 Mon Sep 17 00:00:00 2001 From: Peter Boling Date: Mon, 16 Sep 2024 18:51:16 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Line=20Coverage=20requirement:?= =?UTF-8?q?=2064%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - branch coverage requirement: 44% --- .envrc | 4 ++-- .github/workflows/coverage.yml | 6 +++--- .tool-versions | 2 +- Gemfile.lock | 10 +++++----- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.envrc b/.envrc index 72b9bd5..3f0fb30 100644 --- a/.envrc +++ b/.envrc @@ -3,8 +3,8 @@ export K_SOUP_COV_DO=true # Means you want code coverage # Available formats are html, xml, rcov, lcov, json, tty export K_SOUP_COV_COMMAND_NAME="RSpec Coverage" export K_SOUP_COV_FORMATTERS="html,tty" -export K_SOUP_COV_MIN_BRANCH=45 # Means you want to enforce X% branch coverage -export K_SOUP_COV_MIN_LINE=65 # Means you want to enforce X% line coverage +export K_SOUP_COV_MIN_BRANCH=44 # Means you want to enforce X% branch coverage +export K_SOUP_COV_MIN_LINE=64 # Means you want to enforce X% line coverage export K_SOUP_COV_MIN_HARD=true # Means you want the build to fail if the coverage thresholds are not met export K_SOUP_COV_MULTI_FORMATTERS=true export MAX_ROWS=5 # Setting for simplecov-console gem for tty output, limits to the worst N rows of bad coverage diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 3750e76..4674d1c 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -1,8 +1,8 @@ name: Code Coverage env: - K_SOUP_COV_MIN_BRANCH: 45 - K_SOUP_COV_MIN_LINE: 65 + K_SOUP_COV_MIN_BRANCH: 44 + K_SOUP_COV_MIN_LINE: 64 K_SOUP_COV_MIN_HARD: true K_SOUP_COV_DO: true K_SOUP_COV_COMMAND_NAME: "MiniTest Coverage" @@ -89,7 +89,7 @@ jobs: hide_complexity: true indicators: true output: both - thresholds: '100 100' + thresholds: '64 44' continue-on-error: ${{ matrix.experimental != 'false' }} - name: Add Coverage PR Comment diff --git a/.tool-versions b/.tool-versions index 1dd1998..59511e1 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1 @@ -ruby 3.3.5 +ruby 2.7.8 diff --git a/Gemfile.lock b/Gemfile.lock index 1e1e20c..a8ce43e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -60,13 +60,13 @@ GEM diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.13.0) rspec-support (3.13.1) - rubocop (1.65.1) + rubocop (1.64.1) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 2.4, < 3.0) + regexp_parser (>= 1.8, < 3.0) rexml (>= 3.2.5, < 4.0) rubocop-ast (>= 1.31.1, < 2.0) ruby-progressbar (~> 1.7) @@ -123,10 +123,10 @@ GEM simplecov-rcov (0.3.7) simplecov (>= 0.4.1) simplecov_json_formatter (0.1.4) - standard (1.40.0) + standard (1.37.0) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.0) - rubocop (~> 1.65.0) + rubocop (~> 1.64.0) standard-custom (~> 1.0.0) standard-performance (~> 1.4) standard-custom (1.0.2) @@ -175,4 +175,4 @@ DEPENDENCIES yard-junk (~> 0.0.10) BUNDLED WITH - 2.5.18 + 2.4.22