Skip to content

Commit 2f9dca7

Browse files
committed
test: Setup coverage
1 parent c1178af commit 2f9dca7

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
/gemfiles/.bundle/config
88

99
/_misc/
10+
/coverage/
1011
/spec/dummy/db/*.sqlite3*
1112
/spec/dummy/log/
1213
/spec/dummy/storage/

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ gem 'cuprite'
3131
gem 'rspec_junit_formatter'
3232
gem 'rspec-rails'
3333
gem 'rspec-retry'
34+
gem 'simplecov', require: false
3435

3536
# Linters
3637
gem 'fasterer'

spec/rails_helper.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
ENV['RAILS_ENV'] = 'test'
66

7+
require 'simplecov'
8+
SimpleCov.start 'rails'
9+
710
require File.expand_path('dummy/config/environment.rb', __dir__)
811

912
abort('The Rails environment is running in production mode!') if Rails.env.production?

0 commit comments

Comments
 (0)