Skip to content

Commit

Permalink
test: add simplecov
Browse files Browse the repository at this point in the history
  • Loading branch information
blocknotes committed Jul 7, 2024
1 parent 1e90c53 commit 475b833
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ group :development, :test do
gem 'rspec_junit_formatter'
gem 'rspec-rails'
gem 'selenium-webdriver'
gem 'simplecov', require: false

# Linters
gem 'fasterer'
Expand Down
1 change: 1 addition & 0 deletions gemfiles/rails60_administrate.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ group :development, :test do
gem "rspec_junit_formatter"
gem "rspec-rails"
gem "selenium-webdriver"
gem "simplecov", require: false
gem "fasterer"
gem "rubocop"
gem "rubocop-packaging"
Expand Down
8 changes: 8 additions & 0 deletions gemfiles/rails60_administrate.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ GEM
crass (1.0.6)
date (3.3.4)
diff-lcs (1.5.1)
docile (1.4.0)
erubi (1.13.0)
fasterer (0.11.0)
ruby_parser (>= 3.19.1)
Expand Down Expand Up @@ -279,6 +280,12 @@ GEM
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
sexp_processor (4.17.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)
sprockets (4.2.1)
concurrent-ruby (~> 1.0)
rack (>= 2.2.4, < 4)
Expand Down Expand Up @@ -336,6 +343,7 @@ DEPENDENCIES
rubocop-rails
rubocop-rspec
selenium-webdriver
simplecov
sqlite3 (~> 1.3)

BUNDLED WITH
Expand Down
1 change: 1 addition & 0 deletions gemfiles/rails61_administrate.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ group :development, :test do
gem "rspec_junit_formatter"
gem "rspec-rails"
gem "selenium-webdriver"
gem "simplecov", require: false
gem "fasterer"
gem "rubocop"
gem "rubocop-packaging"
Expand Down
8 changes: 8 additions & 0 deletions gemfiles/rails61_administrate.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ GEM
crass (1.0.6)
date (3.3.4)
diff-lcs (1.5.1)
docile (1.4.0)
erubi (1.13.0)
fasterer (0.11.0)
ruby_parser (>= 3.19.1)
Expand Down Expand Up @@ -282,6 +283,12 @@ GEM
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
sexp_processor (4.17.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)
sprockets (4.2.1)
concurrent-ruby (~> 1.0)
rack (>= 2.2.4, < 4)
Expand Down Expand Up @@ -337,6 +344,7 @@ DEPENDENCIES
rubocop-rails
rubocop-rspec
selenium-webdriver
simplecov
sqlite3 (~> 1.3)

BUNDLED WITH
Expand Down
1 change: 1 addition & 0 deletions gemfiles/rails70_administrate.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ group :development, :test do
gem "rspec_junit_formatter"
gem "rspec-rails"
gem "selenium-webdriver"
gem "simplecov", require: false
gem "fasterer"
gem "rubocop"
gem "rubocop-packaging"
Expand Down
8 changes: 8 additions & 0 deletions gemfiles/rails70_administrate.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ GEM
crass (1.0.6)
date (3.3.4)
diff-lcs (1.5.1)
docile (1.4.0)
erubi (1.13.0)
fasterer (0.11.0)
ruby_parser (>= 3.19.1)
Expand Down Expand Up @@ -288,6 +289,12 @@ GEM
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
sexp_processor (4.17.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)
sprockets (4.2.1)
concurrent-ruby (~> 1.0)
rack (>= 2.2.4, < 4)
Expand Down Expand Up @@ -343,6 +350,7 @@ DEPENDENCIES
rubocop-rails
rubocop-rspec
selenium-webdriver
simplecov
sqlite3 (~> 1.3)

BUNDLED WITH
Expand Down
1 change: 1 addition & 0 deletions gemfiles/rails71_administrate.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ group :development, :test do
gem "rspec_junit_formatter"
gem "rspec-rails"
gem "selenium-webdriver"
gem "simplecov", require: false
gem "fasterer"
gem "rubocop"
gem "rubocop-packaging"
Expand Down
8 changes: 8 additions & 0 deletions gemfiles/rails71_administrate.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ GEM
crass (1.0.6)
date (3.3.4)
diff-lcs (1.5.1)
docile (1.4.0)
drb (2.2.1)
erubi (1.13.0)
fasterer (0.11.0)
Expand Down Expand Up @@ -317,6 +318,12 @@ GEM
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
sexp_processor (4.17.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)
sprockets (4.2.1)
concurrent-ruby (~> 1.0)
rack (>= 2.2.4, < 4)
Expand Down Expand Up @@ -374,6 +381,7 @@ DEPENDENCIES
rubocop-rails
rubocop-rspec
selenium-webdriver
simplecov
sqlite3 (~> 1.3)

BUNDLED WITH
Expand Down
3 changes: 3 additions & 0 deletions spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

ENV['RAILS_ENV'] = 'test'

require 'simplecov'
SimpleCov.start 'rails'

require File.expand_path('dummy/config/environment.rb', __dir__)

abort('The Rails environment is running in production mode!') if Rails.env.production?
Expand Down

0 comments on commit 475b833

Please sign in to comment.