Skip to content

Commit

Permalink
Configure simplecov
Browse files Browse the repository at this point in the history
  • Loading branch information
skelz0r committed Dec 25, 2023
1 parent 9c3467e commit da5a083
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@
sandbox

/config/credentials/production.key
coverage/
1 change: 1 addition & 0 deletions .simplecov
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SimpleCov.start 'rails' unless ENV['COVERAGE'].nil?
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,5 @@ group :test do
gem 'rack_session_access'
gem 'rspec-rails', '6.1.0'
gem 'selenium-webdriver'
gem 'simplecov', require: false
end
8 changes: 8 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ GEM
irb (~> 1.10)
reline (>= 0.3.8)
diff-lcs (1.5.0)
docile (1.4.0)
drb (2.2.0)
ruby2_keywords
erubi (1.12.0)
Expand Down Expand Up @@ -429,6 +430,12 @@ GEM
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
shellany (0.0.1)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.4)
smart_properties (1.17.0)
snaky_hash (2.0.1)
hashie
Expand Down Expand Up @@ -516,6 +523,7 @@ DEPENDENCIES
rubocop-rails
rubocop-rspec
selenium-webdriver
simplecov
state_machines-activerecord
stimulus-rails
turbo-rails
Expand Down
2 changes: 2 additions & 0 deletions features/support/env.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'simplecov'

# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.
# It is recommended to regenerate this file in the future when you upgrade to a
# newer version of cucumber-rails. Consider adding your own code to a new file
Expand Down
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'simplecov'

# This file was generated by the `rails generate rspec:install` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
# The generated `.rspec` file contains `--require spec_helper` which will cause
Expand Down

0 comments on commit da5a083

Please sign in to comment.