Skip to content

Commit

Permalink
force 100% coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
tycooon committed Sep 13, 2024
1 parent 1c163d5 commit 923fcd3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 19 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,3 @@ jobs:
bundler-cache: true

- run: bundle exec rake

- uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ gem "rake"
gem "rspec"
gem "rubocop-config-umbrellio"
gem "simplecov"
gem "simplecov-lcov"
4 changes: 1 addition & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -131,7 +130,6 @@ DEPENDENCIES
rspec
rubocop-config-umbrellio
simplecov
simplecov-lcov

BUNDLED WITH
2.4.22
16 changes: 5 additions & 11 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 923fcd3

Please sign in to comment.