Fix coverage bug
This commit is contained in:
parent
823f5d5386
commit
a200b9e8e0
|
@ -67,6 +67,12 @@ Style/Documentation:
|
|||
Style/DoubleNegation:
|
||||
Enabled: false
|
||||
|
||||
Style/GlobalVars:
|
||||
Exclude:
|
||||
- 'features/support/env.rb'
|
||||
- 'spec/spec_helper.rb'
|
||||
- 'spec/rails_helper.rb'
|
||||
|
||||
Style/RescueModifier:
|
||||
Exclude:
|
||||
- 'spec/**/*.rb'
|
||||
|
|
26
.simplecov
26
.simplecov
|
@ -1,18 +1,20 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
SimpleCov.start 'rails' do
|
||||
merge_timeout 3600
|
||||
if $coverage
|
||||
SimpleCov.start 'rails' do
|
||||
merge_timeout 3600
|
||||
|
||||
formatter SimpleCov::Formatter::HTMLFormatter
|
||||
formatter SimpleCov::Formatter::HTMLFormatter
|
||||
|
||||
add_group 'Channels', '/app/channels/'
|
||||
add_group 'Interactors', '/app/interactors/'
|
||||
add_group 'Policies', '/app/policies/'
|
||||
add_group 'Channels', '/app/channels/'
|
||||
add_group 'Interactors', '/app/interactors/'
|
||||
add_group 'Policies', '/app/policies/'
|
||||
|
||||
add_filter '/app/previews/'
|
||||
add_filter '/factories/'
|
||||
add_filter '/features/'
|
||||
add_filter '/lib/templates/'
|
||||
add_filter '/spec/'
|
||||
add_filter '/vendor/'
|
||||
add_filter '/app/previews/'
|
||||
add_filter '/factories/'
|
||||
add_filter '/features/'
|
||||
add_filter '/lib/templates/'
|
||||
add_filter '/spec/'
|
||||
add_filter '/vendor/'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
# files.
|
||||
|
||||
# This should be on the top of the file.
|
||||
$coverage = true
|
||||
require 'simplecov'
|
||||
|
||||
require 'cucumber/rails'
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# This should be on the top of the file.
|
||||
$coverage = true
|
||||
require 'simplecov'
|
||||
|
||||
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# This should be on the top of the file.
|
||||
$coverage = true
|
||||
require 'simplecov'
|
||||
|
||||
# This file was generated by the `rails generate rspec:install` command.
|
||||
|
|
Reference in New Issue