mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
The way we have it set up, Simplecov generates a report in Codecov's format and tries to send it to them, which fails. This gets us back to the former Simplecov setup. This lets you check the visual coverage report navigating to `coverage/index.html`.
23 lines
475 B
Ruby
Executable File
23 lines
475 B
Ruby
Executable File
#!/bin/env ruby
|
|
|
|
SimpleCov.start 'rails' do
|
|
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'
|
|
add_filter '/lib/tasks/sample_data/'
|
|
end
|
|
|
|
if ENV['CI']
|
|
require 'codecov'
|
|
SimpleCov.formatter = SimpleCov::Formatter::Codecov
|
|
end
|