Skip to content

Commit

Permalink
Bump simplecov from 0.17.1 to 0.22.0 (#122)
Browse files Browse the repository at this point in the history
* Bump simplecov from 0.17.1 to 0.22.0

Bumps [simplecov](https://github.com/simplecov-ruby/simplecov) from 0.17.1 to 0.22.0.
- [Release notes](https://github.com/simplecov-ruby/simplecov/releases)
- [Changelog](https://github.com/simplecov-ruby/simplecov/blob/main/CHANGELOG.md)
- [Commits](simplecov-ruby/simplecov@v0.17.1...v0.22.0)

---
updated-dependencies:
- dependency-name: simplecov
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* specify coverage.json file

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Stephen Chudleigh <[email protected]>
  • Loading branch information
dependabot[bot] and stepchud authored Dec 19, 2024
1 parent 7f4a480 commit 6085242
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 26 deletions.
9 changes: 6 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ jobs:
name: test_executor

environment:
PHOENIX_URI: http://localhost:4000
- PHOENIX_URI: http://localhost:4000
- CC_TEST_REPORTER_ID: a561562e78b6f0b3e346d4811eef2b020f977cd089bf459f102f6229dd100703


parallelism: 1

Expand Down Expand Up @@ -104,7 +106,8 @@ jobs:
--format progress \
$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)
./cc-test-reporter format-coverage \
./cc-test-reporter format-coverage coverage/coverage.json \
--input-type simplecov \
--output coverage/codeclimate.rspec.$CIRCLE_NODE_INDEX.3.2.4.json
- persist_to_workspace:
Expand All @@ -125,7 +128,7 @@ jobs:
name: test_executor

environment:
- CC_TEST_REPORTER_ID: "a561562e78b6f0b3e346d4811eef2b020f977cd089bf459f102f6229dd100703"
- CC_TEST_REPORTER_ID: a561562e78b6f0b3e346d4811eef2b020f977cd089bf459f102f6229dd100703

steps:
- restore_cache:
Expand Down
19 changes: 4 additions & 15 deletions .simplecov
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
if ENV['CIRCLECI']
SimpleCov.at_exit do
result_hash = SimpleCov.result.to_hash
SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new(
[SimpleCov::Formatter::HTMLFormatter, SimpleCov::Formatter::JSONFormatter]
)

if result_hash.keys == ['Cucumber, RSpec']
if SimpleCov.result.covered_percent < 100
puts "=========== Lines missing coverage: ==========="
result_hash['Cucumber, RSpec']['coverage'].each do |file_name, file_lines|
file_lines.each_with_index { |val, index| puts "#{file_name}, #{index + 1}" if val == 0 }
end
end
end
end
end

SimpleCov.start 'rails' do
SimpleCov.start :rails do
add_filter '/vendor/'
add_filter '/.bundler/'
add_filter '/.nix-bundler/'
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ end
group :test do
gem "webmock"
gem "rspec_junit_formatter"
gem 'simplecov', '~> 0.17.0', require: false
gem 'simplecov', '~> 0.22.0', require: false
gem "rails-controller-testing"
end

Expand Down
11 changes: 6 additions & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -328,11 +328,12 @@ GEM
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
simplecov (0.17.1)
simplecov (0.22.0)
docile (~> 1.1)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.2)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.13.1)
simplecov_json_formatter (0.1.4)
stimulus-rails (1.3.4)
railties (>= 6.0.0)
stringio (3.1.2)
Expand Down Expand Up @@ -411,7 +412,7 @@ DEPENDENCIES
rubocop-rake
rubocop-rspec
selenium-webdriver (>= 4.24.0)
simplecov (~> 0.17.0)
simplecov (~> 0.22.0)
stimulus-rails
turbo-rails
tzinfo-data
Expand Down
2 changes: 0 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
require 'webmock/rspec'
require 'securerandom'

SimpleCov.command_name 'RSpec'

# See https://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
RSpec.configure do |config|
config.expect_with :rspec do |expectations|
Expand Down

0 comments on commit 6085242

Please sign in to comment.