mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-26 00:51:37 +01:00
Disable simplecov enable_coverage_for_eval
option, move to standalone file (#27869)
This commit is contained in:
parent
3de9145613
commit
04121bd020
2 changed files with 24 additions and 23 deletions
22
.simplecov
Normal file
22
.simplecov
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
if ENV['CI']
|
||||||
|
require 'simplecov-lcov'
|
||||||
|
SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true
|
||||||
|
SimpleCov.formatter = SimpleCov::Formatter::LcovFormatter
|
||||||
|
else
|
||||||
|
SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter
|
||||||
|
end
|
||||||
|
|
||||||
|
SimpleCov.start 'rails' do
|
||||||
|
enable_coverage :branch
|
||||||
|
|
||||||
|
add_filter 'lib/linter'
|
||||||
|
|
||||||
|
add_group 'Libraries', 'lib'
|
||||||
|
add_group 'Policies', 'app/policies'
|
||||||
|
add_group 'Presenters', 'app/presenters'
|
||||||
|
add_group 'Serializers', 'app/serializers'
|
||||||
|
add_group 'Services', 'app/services'
|
||||||
|
add_group 'Validators', 'app/validators'
|
||||||
|
end
|
|
@ -1,28 +1,7 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
if ENV['DISABLE_SIMPLECOV'] != 'true'
|
unless ENV['DISABLE_SIMPLECOV'] == 'true'
|
||||||
require 'simplecov'
|
require 'simplecov' # Configuration details loaded from .simplecov
|
||||||
|
|
||||||
if ENV['CI']
|
|
||||||
require 'simplecov-lcov'
|
|
||||||
SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true
|
|
||||||
SimpleCov.formatter = SimpleCov::Formatter::LcovFormatter
|
|
||||||
else
|
|
||||||
SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter
|
|
||||||
end
|
|
||||||
SimpleCov.start 'rails' do
|
|
||||||
enable_coverage :branch
|
|
||||||
enable_coverage_for_eval
|
|
||||||
|
|
||||||
add_filter 'lib/linter'
|
|
||||||
add_group 'Policies', 'app/policies'
|
|
||||||
add_group 'Presenters', 'app/presenters'
|
|
||||||
add_group 'Serializers', 'app/serializers'
|
|
||||||
add_group 'Services', 'app/services'
|
|
||||||
add_group 'Validators', 'app/validators'
|
|
||||||
|
|
||||||
add_group 'Libraries', 'lib'
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
RSpec.configure do |config|
|
RSpec.configure do |config|
|
||||||
|
|
Loading…
Reference in a new issue