diff --git a/.gitignore b/.gitignore index b04a8c8..cff6571 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,6 @@ # rspec failure tracking .rspec_status + +# Ignore coverage reports +coverage/ diff --git a/Gemfile b/Gemfile index ae1530f..2f0ce1d 100644 --- a/Gemfile +++ b/Gemfile @@ -12,3 +12,5 @@ gem "rspec", "~> 3.0" gem "standard", "~> 1.3" gem "factory_bot", "~> 6.3" + +gem "simplecov", "~> 0.22.0", require: false diff --git a/Gemfile.lock b/Gemfile.lock index c667e53..d7ae2b9 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -23,6 +23,7 @@ GEM concurrent-ruby (1.2.2) connection_pool (2.4.1) diff-lcs (1.5.0) + docile (1.4.0) drb (2.1.1) ruby2_keywords factory_bot (6.3.0) @@ -76,6 +77,12 @@ GEM rubocop-ast (>= 0.4.0) ruby-progressbar (1.13.0) ruby2_keywords (0.0.5) + 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) standard (1.31.2) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.0) @@ -100,6 +107,7 @@ DEPENDENCIES rake (~> 13.0) rex! rspec (~> 3.0) + simplecov (~> 0.22.0) standard (~> 1.3) BUNDLED WITH diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 405f066..ccec118 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,7 +1,10 @@ # frozen_string_literal: true +require "simplecov" + +SimpleCov.start require "rex" -require 'factory_bot' + Dir[ File.join( File.expand_path("../support", __FILE__),