Add simplecov for coverage reports

This commit is contained in:
Tim Kächele 2023-10-28 11:33:28 +02:00
parent 9582315e59
commit d168a36fda
4 changed files with 17 additions and 1 deletions

3
.gitignore vendored
View File

@ -9,3 +9,6 @@
# rspec failure tracking
.rspec_status
# Ignore coverage reports
coverage/

View File

@ -12,3 +12,5 @@ gem "rspec", "~> 3.0"
gem "standard", "~> 1.3"
gem "factory_bot", "~> 6.3"
gem "simplecov", "~> 0.22.0", require: false

View File

@ -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

View File

@ -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__),