From d049f1aded02adc385800b161097089b64ad39bd Mon Sep 17 00:00:00 2001 From: markokajzer Date: Thu, 8 Feb 2024 22:38:59 +0100 Subject: [PATCH] chore: add code coverage --- .gitignore | 1 + Gemfile | 1 + Gemfile.lock | 8 ++++++++ spec/spec_helper.rb | 3 +++ 4 files changed, 13 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4ebc8ae --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +coverage diff --git a/Gemfile b/Gemfile index 9dc27bd..529809d 100644 --- a/Gemfile +++ b/Gemfile @@ -15,6 +15,7 @@ end group :test do gem "rspec" + gem "simplecov", require: false gem "timecop" gem "webmock" end diff --git a/Gemfile.lock b/Gemfile.lock index faf7ad9..b446b0b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -25,6 +25,7 @@ GEM irb (~> 1.10) reline (>= 0.3.8) diff-lcs (1.5.1) + docile (1.4.0) drb (2.2.0) ruby2_keywords faraday (2.9.0) @@ -106,6 +107,12 @@ GEM sawyer (0.9.2) addressable (>= 2.3.5) faraday (>= 0.17.3, < 3) + 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.33.0) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.0) @@ -142,6 +149,7 @@ DEPENDENCIES octokit rspec rubocop-rspec + simplecov standard terminal-table timecop diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index c3fc22d..34afcfb 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -102,3 +102,6 @@ require "webmock/rspec" Dir[File.expand_path("support/**/*.rb", __dir__)].sort.each { |f| require f } + +require "simplecov" +SimpleCov.start