Install simplecov for test coverage stats

This commit is contained in:
Jesse C. Fisher 2016-02-23 13:34:02 -08:00
parent a35bc4e868
commit c0d84b30ba
6 changed files with 18 additions and 1 deletions

View File

@ -64,6 +64,7 @@ group :test, :staging do
gem "poltergeist" gem "poltergeist"
gem 'launchy' gem 'launchy'
gem 'selenium-webdriver' gem 'selenium-webdriver'
gem 'simplecov', :require => false
end end
group :production, :staging do group :production, :staging do
gem 'newrelic_rpm' gem 'newrelic_rpm'

View File

@ -104,6 +104,7 @@ GEM
actionmailer (>= 3.2.6, < 5) actionmailer (>= 3.2.6, < 5)
devise (>= 3.2.0) devise (>= 3.2.0)
diff-lcs (1.2.5) diff-lcs (1.2.5)
docile (1.1.5)
dotenv (2.1.0) dotenv (2.1.0)
dotenv-rails (2.1.0) dotenv-rails (2.1.0)
dotenv (= 2.1.0) dotenv (= 2.1.0)
@ -336,6 +337,11 @@ GEM
simple_form (3.2.1) simple_form (3.2.1)
actionpack (> 4, < 5.1) actionpack (> 4, < 5.1)
activemodel (> 4, < 5.1) activemodel (> 4, < 5.1)
simplecov (0.10.0)
docile (~> 1.1.0)
json (~> 1.8)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.0)
slop (3.6.0) slop (3.6.0)
spring (1.6.3) spring (1.6.3)
spring-commands-rspec (1.0.4) spring-commands-rspec (1.0.4)
@ -440,6 +446,7 @@ DEPENDENCIES
sdoc (~> 0.4.0) sdoc (~> 0.4.0)
selenium-webdriver selenium-webdriver
simple_form simple_form
simplecov
spring spring
spring-commands-rspec spring-commands-rspec
turbolinks turbolinks

View File

@ -2,3 +2,9 @@
APP_PATH = File.expand_path('../../config/application', __FILE__) APP_PATH = File.expand_path('../../config/application', __FILE__)
require_relative '../config/boot' require_relative '../config/boot'
require 'rails/commands' require 'rails/commands'
if ENV['RAILS_ENV'] == 'test'
require 'simplecov'
SimpleCov.start 'rails'
puts "required simplecov"
end

View File

@ -6,6 +6,7 @@ Rails.application.configure do
# since you don't have to restart the web server when you make code changes. # since you don't have to restart the web server when you make code changes.
config.cache_classes = false config.cache_classes = false
config.serve_static_files = false
# Do not eager load code on boot. # Do not eager load code on boot.
config.eager_load = false config.eager_load = false

View File

@ -13,7 +13,7 @@ Rails.application.configure do
config.eager_load = false config.eager_load = false
# Configure static asset server for tests with Cache-Control for performance. # Configure static asset server for tests with Cache-Control for performance.
config.serve_static_assets = true config.serve_static_assets = false
config.static_cache_control = 'public, max-age=3600' config.static_cache_control = 'public, max-age=3600'
# Show full error reports and disable caching. # Show full error reports and disable caching.

View File

@ -1,3 +1,5 @@
require 'simplecov'
SimpleCov.start
# This file was generated by the `rails generate rspec:install` command. # This file was generated by the `rails generate rspec:install` command.
# Conventionally, all specs live under a `spec` directory, which # Conventionally, all specs live under a `spec` directory, which
# RSpec adds to the `$LOAD_PATH`. # RSpec adds to the `$LOAD_PATH`.