Skip to content

Commit

Permalink
Add simplecov
Browse files Browse the repository at this point in the history
  • Loading branch information
hmlON committed Jan 28, 2017
1 parent 89b3c7b commit 86939ea
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 12 deletions.
12 changes: 1 addition & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'

# Ignore bundler config.
/coverage
/.bundle

# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep

# Ignore Byebug command history file.
.byebug_history
6 changes: 6 additions & 0 deletions .simplecov
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
SimpleCov.start 'rails' do
add_filter '/app/channels/'
add_filter '/app/mailers/'
add_filter '/app/helpers/'
add_filter '/app/jobs/'
end
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ group :test do
gem 'launchy'
gem 'selenium-webdriver'
gem 'shoulda-matchers'
gem 'simplecov', require: false
end

gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
8 changes: 8 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ GEM
descendants_tracker (0.0.4)
thread_safe (~> 0.3, >= 0.3.1)
diff-lcs (1.3)
docile (1.1.5)
equalizer (0.0.11)
erubis (2.7.0)
execjs (2.7.0)
Expand Down Expand Up @@ -112,6 +113,7 @@ GEM
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
json (2.0.3)
launchy (2.4.3)
addressable (~> 2.3)
listen (3.0.8)
Expand Down Expand Up @@ -224,6 +226,11 @@ GEM
shellany (0.0.1)
shoulda-matchers (3.1.1)
activesupport (>= 4.0.0)
simplecov (0.12.0)
docile (~> 1.1.0)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.0)
slim (3.0.7)
temple (~> 0.7.6)
tilt (>= 1.3.3, < 2.1)
Expand Down Expand Up @@ -298,6 +305,7 @@ DEPENDENCIES
sass-rails (~> 5.0)
selenium-webdriver
shoulda-matchers
simplecov
slim-rails
spring
spring-watcher-listen (~> 2.0.0)
Expand Down
2 changes: 1 addition & 1 deletion spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
require 'rspec/rails'

# Add additional requires below this line. Rails is not loaded until this point!

require 'simplecov'
Dir[Rails.root.join('spec', 'support**', '*.rb')].each { |f| require f }

ActiveRecord::Migration.maintain_test_schema!
Expand Down

0 comments on commit 86939ea

Please sign in to comment.