1
0
Fork 0

Fix coverage bug

This commit is contained in:
Alex Kotov 2018-12-09 05:28:25 +05:00
parent 823f5d5386
commit a200b9e8e0
No known key found for this signature in database
GPG Key ID: 4E831250F47DE154
5 changed files with 23 additions and 12 deletions

View File

@ -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'

View File

@ -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

View File

@ -5,6 +5,7 @@
# files.
# This should be on the top of the file.
$coverage = true
require 'simplecov'
require 'cucumber/rails'

View File

@ -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'

View File

@ -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.