Add simplecov for code coverage

This commit is contained in:
Lars Henrik Mai 2016-01-11 22:01:33 +01:00
parent fce65636f7
commit acfb973efc
4 changed files with 12 additions and 0 deletions

1
.gitignore vendored
View file

@ -15,3 +15,4 @@
/log/*.log
/tmp
config/morph.yml
/coverage

View file

@ -54,6 +54,7 @@ group :test do
gem 'factory_girl_rails'
gem 'shoulda'
gem 'faker'
gem 'simplecov', require: false
end
# Use ActiveModel has_secure_password

View file

@ -54,6 +54,7 @@ GEM
coffee-script-source
execjs
coffee-script-source (1.9.1.1)
docile (1.1.5)
elasticsearch (1.0.8)
elasticsearch-api (= 1.0.7)
elasticsearch-transport (= 1.0.7)
@ -174,6 +175,11 @@ GEM
shoulda-context (1.2.1)
shoulda-matchers (2.8.0)
activesupport (>= 3.0.0)
simplecov (0.11.1)
docile (~> 1.1.0)
json (~> 1.8)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.0)
slim (3.0.3)
temple (~> 0.7.3)
tilt (>= 1.3.3, < 2.1)
@ -236,6 +242,7 @@ DEPENDENCIES
sass-rails
sdoc (~> 0.4.0)
shoulda
simplecov
slim-rails
spring
sqlite3

View file

@ -1,3 +1,6 @@
require 'simplecov'
SimpleCov.start 'rails'
ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'