Skip to content

Commit ed2b002

Browse files
committed
Add simplecov
1 parent 2abd165 commit ed2b002

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ source "https://rubygems.org"
55
# Specify your gem's dependencies in rails-diff.gemspec
66
gemspec
77

8+
gem "simplecov", require: false
89
gem "standard", "~> 1.0"
910
gem "rake", "~> 13.0"
1011

Gemfile.lock

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ GEM
9191
date (3.4.1)
9292
diff-lcs (1.5.1)
9393
diffy (3.4.3)
94+
docile (1.4.1)
9495
drb (2.2.1)
9596
erubi (1.13.1)
9697
globalid (1.2.1)
@@ -222,6 +223,12 @@ GEM
222223
rubocop-ast (>= 1.38.0, < 2.0)
223224
ruby-progressbar (1.13.0)
224225
securerandom (0.4.1)
226+
simplecov (0.22.0)
227+
docile (~> 1.1)
228+
simplecov-html (~> 0.11)
229+
simplecov_json_formatter (~> 0.1)
230+
simplecov-html (0.13.1)
231+
simplecov_json_formatter (0.1.4)
225232
standard (1.50.0)
226233
language_server-protocol (~> 3.17.0.2)
227234
lint_roller (~> 1.0)
@@ -258,6 +265,7 @@ DEPENDENCIES
258265
rails-diff!
259266
rake (~> 13.0)
260267
rspec (~> 3.0)
268+
simplecov
261269
standard (~> 1.0)
262270

263271
BUNDLED WITH

spec/spec_helper.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# frozen_string_literal: true
22

3+
require "simplecov"
4+
SimpleCov.start do
5+
enable_coverage :branch
6+
add_filter "/spec/"
7+
end
8+
39
require "rails/diff"
410
Dir["./spec/support/**/*.rb"].sort.each { |f| require f }
511

0 commit comments

Comments
 (0)