mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-19 00:27:25 +00:00
The configuration can go into the central .simplecov file and then we just need to `require` simplecov to start the coverage process. This also avoids duplicating the config if we want to start simplecov from the rails server to cover the lines used in by the server in feature specs. https://github.com/simplecov-ruby/simplecov#using-simplecov-for-centralized-config
19 lines
367 B
Ruby
19 lines
367 B
Ruby
#!/bin/env ruby
|
|
|
|
SimpleCov.start 'rails' do
|
|
minimum_coverage 54
|
|
|
|
add_filter '/bin/'
|
|
add_filter '/config/'
|
|
add_filter '/jobs/application_job.rb'
|
|
add_filter '/schemas/'
|
|
add_filter '/lib/generators'
|
|
add_filter '/spec/'
|
|
add_filter '/vendor/'
|
|
add_filter '/public'
|
|
add_filter '/swagger'
|
|
add_filter '/script'
|
|
add_filter '/log'
|
|
add_filter '/db'
|
|
end
|