Skip to content

Commit

Permalink
Add SimpleCov to collect code coverage info
Browse files Browse the repository at this point in the history
  • Loading branch information
Morozzzko committed Dec 4, 2024
1 parent 01e6078 commit 6d22458
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ spec/db/data_schema.rb
.idea/
vendor/
Gemfile.lock
coverage/
1 change: 1 addition & 0 deletions data_migrate.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ Gem::Specification.new do |s|
s.add_development_dependency "timecop"
s.add_development_dependency "rubocop"
s.add_development_dependency "overcommit"
s.add_development_dependency "simplecov"
end
9 changes: 9 additions & 0 deletions gemfiles/rails_6.1.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ GEM
crass (1.0.6)
date (3.3.4)
diff-lcs (1.5.0)
docile (1.4.1)
erubi (1.13.0)
globalid (1.2.1)
activesupport (>= 6.1)
Expand Down Expand Up @@ -190,6 +191,12 @@ GEM
rubocop-ast (1.29.0)
parser (>= 3.2.1.0)
ruby-progressbar (1.13.0)
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 @@ -217,6 +224,7 @@ PLATFORMS
arm64-darwin-22
arm64-darwin-23
x86_64-darwin-22
x86_64-darwin-23
x86_64-linux

DEPENDENCIES
Expand All @@ -230,6 +238,7 @@ DEPENDENCIES
rspec
rspec-core
rubocop
simplecov
sqlite3
timecop

Expand Down
9 changes: 9 additions & 0 deletions gemfiles/rails_7.0.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ GEM
crass (1.0.6)
date (3.3.4)
diff-lcs (1.5.0)
docile (1.4.1)
erubi (1.13.0)
globalid (1.2.1)
activesupport (>= 6.1)
Expand Down Expand Up @@ -198,6 +199,12 @@ GEM
rubocop-ast (1.29.0)
parser (>= 3.2.1.0)
ruby-progressbar (1.13.0)
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)
sqlite3 (1.7.2-aarch64-linux)
sqlite3 (1.7.2-arm64-darwin)
sqlite3 (1.7.2-x86_64-darwin)
Expand All @@ -218,6 +225,7 @@ PLATFORMS
arm64-darwin-22
arm64-darwin-23
x86_64-darwin-22
x86_64-darwin-23
x86_64-linux

DEPENDENCIES
Expand All @@ -231,6 +239,7 @@ DEPENDENCIES
rspec
rspec-core
rubocop
simplecov
sqlite3
timecop

Expand Down
8 changes: 8 additions & 0 deletions gemfiles/rails_7.1.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ GEM
crass (1.0.6)
date (3.3.4)
diff-lcs (1.5.0)
docile (1.4.1)
drb (2.2.1)
erubi (1.13.0)
globalid (1.2.1)
Expand Down Expand Up @@ -232,6 +233,12 @@ GEM
rubocop-ast (1.29.0)
parser (>= 3.2.1.0)
ruby-progressbar (1.13.0)
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)
sqlite3 (1.7.2)
mini_portile2 (~> 2.8.0)
sqlite3 (1.7.2-aarch64-linux)
Expand Down Expand Up @@ -270,6 +277,7 @@ DEPENDENCIES
rspec
rspec-core
rubocop
simplecov
sqlite3
timecop

Expand Down
8 changes: 8 additions & 0 deletions gemfiles/rails_7.2.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ GEM
crass (1.0.6)
date (3.3.4)
diff-lcs (1.5.1)
docile (1.4.1)
drb (2.2.1)
erubi (1.13.0)
globalid (1.2.1)
Expand Down Expand Up @@ -230,6 +231,12 @@ GEM
parser (>= 3.3.1.0)
ruby-progressbar (1.13.0)
securerandom (0.3.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)
sqlite3 (2.0.2-aarch64-linux-gnu)
sqlite3 (2.0.2-arm64-darwin)
sqlite3 (2.0.2-x86_64-darwin)
Expand Down Expand Up @@ -267,6 +274,7 @@ DEPENDENCIES
rspec
rspec-core
rubocop
simplecov
sqlite3
timecop

Expand Down
8 changes: 8 additions & 0 deletions gemfiles/rails_8.0.gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ GEM
crass (1.0.6)
date (3.4.0)
diff-lcs (1.5.1)
docile (1.4.1)
drb (2.2.1)
erubi (1.13.0)
globalid (1.2.1)
Expand Down Expand Up @@ -231,6 +232,12 @@ GEM
parser (>= 3.3.1.0)
ruby-progressbar (1.13.0)
securerandom (0.3.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)
sqlite3 (2.1.0)
mini_portile2 (~> 2.8.0)
sqlite3 (2.1.0-aarch64-linux-gnu)
Expand Down Expand Up @@ -270,6 +277,7 @@ DEPENDENCIES
rspec
rspec-core
rubocop
simplecov
sqlite3
timecop

Expand Down
3 changes: 3 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
require 'simplecov'
SimpleCov.start

require 'rspec'
require 'rails'
require 'sqlite3'
Expand Down

0 comments on commit 6d22458

Please sign in to comment.