Skip to content

Commit 0b8a580

Browse files
committed
Add SimpleCov for test coverage
1 parent 4497651 commit 0b8a580

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ group :test do
1111
gem 'cuprite'
1212
gem 'puma'
1313
gem 'rspec-rails', '~> 6.0'
14+
gem 'simplecov', require: false
1415
gem 'sqlite3', '~> 2.0'
1516
end

spec/rails_helper.rb

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

33
require 'bundler/setup'
44

5+
require 'simplecov'
6+
SimpleCov.start do
7+
add_filter '/spec/'
8+
end
9+
510
ENV['RAILS_ENV'] = 'test'
611

712
require_relative 'dummy/test_application'

0 commit comments

Comments
 (0)