-
Notifications
You must be signed in to change notification settings - Fork 11
/
.simplecov
23 lines (21 loc) · 956 Bytes
/
.simplecov
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'simplecov-console'
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::HTMLFormatter,
SimpleCov::Formatter::Console,
])
SimpleCov.start 'rails' do
nocov_token 'nocov'
merge_timeout 3600
command_name "Tests #{rand(100000)}"
add_filter do |file|
(!file.filename.match(/\/app\/controllers\/[^\/]+\.rb$/).nil? && file.filename.match(/application_controller\.rb$/).nil?) ||
!file.filename.match(/\/app\/controllers\/concerns\/[^\/]+_doc\.rb$/).nil? ||
!file.filename.match(/\/lib\/sample_data\.rb$/).nil? ||
!file.filename.match(/\/lib\/middleware_sidekiq_server_retry\.rb$/).nil? ||
!file.filename.match(/\/lib\/tasks\//).nil? ||
!file.filename.match(/\/app\/graph\/types\/mutation_type\.rb$/).nil? ||
!file.filename.match(/\/app\/graphql\/types\/mutation_type\.rb$/).nil? ||
!file.filename.match(/\/lib\/check_statistics\.rb$/).nil?
end
coverage_dir 'coverage'
end