Skip to content

Commit b6f3c0c

Browse files
committed
test: Setup coverage
1 parent 7d3a084 commit b6f3c0c

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
/Gemfile.lock
77

88
/_misc/
9+
/coverage/
910
/spec/dummy/db/*.sqlite3*
1011
/spec/dummy/log/
1112
/spec/dummy/storage/

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ gem 'cuprite'
3434
gem 'rspec_junit_formatter'
3535
gem 'rspec-rails'
3636
gem 'rspec-retry'
37+
gem 'simplecov', require: false
3738

3839
# Linters
3940
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)