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 /log/*.log
/tmp /tmp
config/morph.yml config/morph.yml
/coverage

View file

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

View file

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

View file

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