Setup simplecov
This commit is contained in:
parent
b33631edf0
commit
09cd0d1790
2 changed files with 7 additions and 0 deletions
|
@ -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__)
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue