Skip to content

Commit

Permalink
Installed SimpleCov and fixed coverage running on tests and config
Browse files Browse the repository at this point in the history
Coverage was artificially inflated due to checking /tests and /config
  • Loading branch information
vkoves committed Feb 27, 2018
1 parent 3284b27 commit cc189fa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Gemfile
Expand Up @@ -92,5 +92,8 @@ gem 'rails-settings-ui'
# For controller tests
gem 'rails-controller-testing'

# Add SimpleCov for code coverage & coveralls config
gem 'simplecov', require: false, group: :test

# Add Coveralls for code coverage badge & tracking
gem 'coveralls', require: false
1 change: 1 addition & 0 deletions Gemfile.lock
Expand Up @@ -265,6 +265,7 @@ DEPENDENCIES
rails-settings-cached
rails-settings-ui
sass-rails (~> 5.0)
simplecov
spring
spring-watcher-listen (~> 2.0.0)
sqlite3
Expand Down
6 changes: 6 additions & 0 deletions test/test_helper.rb
@@ -1,7 +1,13 @@
# Add Coveralls
require 'simplecov'
require 'coveralls'
Coveralls.wear!

SimpleCov.start do
add_filter "/test/"
add_filter "/config/"
end

ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
Expand Down

0 comments on commit cc189fa

Please sign in to comment.