-
Notifications
You must be signed in to change notification settings - Fork 0
/
.simplecov
35 lines (29 loc) · 1.13 KB
/
.simplecov
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
if ENV['CIRCLECI']
SimpleCov.at_exit do
result_hash = SimpleCov.result.to_hash
if result_hash.keys == ['Cucumber, RSpec']
if SimpleCov.result.covered_percent < 100
puts "=========== Lines missing coverage: ==========="
result_hash['Cucumber, RSpec']['coverage'].each do |file_name, file_lines|
file_lines.each_with_index { |val, index| puts "#{file_name}, #{index + 1}" if val == 0 }
end
end
end
end
end
SimpleCov.start 'rails' do
add_filter '/vendor/'
add_filter '/.bundler/'
add_filter '/.nix-bundler/'
# Exclude ActionCable base files if not customized
add_filter '/app/channels/application_cable/channel.rb'
add_filter '/app/channels/application_cable/connection.rb'
# Optionally exclude base classes if they don't have much custom logic
# add_filter '/app/controllers/application_controller.rb'
add_filter '/app/helpers/application_helper.rb'
add_filter '/app/jobs/application_job.rb'
add_filter '/app/mailers/application_mailer.rb'
add_filter '/app/models/application_record.rb'
add_filter '/app/controllers/sandbox_controller.rb'
merge_timeout 1800
end