mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 20:18:22 +02:00
Inline simplecov
gem config
This commit is contained in:
parent
3fb6ccc67c
commit
f4378b2489
2 changed files with 8 additions and 9 deletions
|
@ -1,8 +0,0 @@
|
||||||
SimpleCov.start 'rails' do
|
|
||||||
add_filter '/app/models/legacy/'
|
|
||||||
add_filter '/app/models/version/'
|
|
||||||
add_filter '/lib/action_controller/'
|
|
||||||
add_filter '/lib/core_ext/'
|
|
||||||
add_filter '/lib/daemons/'
|
|
||||||
add_filter '/lib/gem_ext/'
|
|
||||||
end
|
|
|
@ -1,6 +1,13 @@
|
||||||
if ENV['COVERAGE']
|
if ENV['COVERAGE']
|
||||||
require 'simplecov'
|
require 'simplecov'
|
||||||
SimpleCov.command_name 'test'
|
SimpleCov.start 'rails' do
|
||||||
|
add_filter '/app/models/legacy/'
|
||||||
|
add_filter '/app/models/version/'
|
||||||
|
add_filter '/lib/action_controller/'
|
||||||
|
add_filter '/lib/core_ext/'
|
||||||
|
add_filter '/lib/daemons/'
|
||||||
|
add_filter '/lib/gem_ext/'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
ENV['RAILS_ENV'] ||= 'test'
|
ENV['RAILS_ENV'] ||= 'test'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue