Setup simplecov

This commit is contained in:
Eric Schultz 2018-12-10 15:51:50 -06:00
parent b33631edf0
commit 09cd0d1790
2 changed files with 7 additions and 0 deletions

View file

@ -1,5 +1,10 @@
#!/usr/bin/env ruby
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
if ENV['RAILS_ENV'] == 'test'
require 'simplecov'
SimpleCov.start 'rails'
puts "required simplecov"
end
APP_PATH = File.expand_path('../../config/application', __FILE__)
require File.expand_path('../../config/boot', __FILE__)

View file

@ -1,3 +1,5 @@
require 'simplecov'
SimpleCov.start
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV['RAILS_ENV'] ||= 'test'