Commit 4fae08a2 authored by Rafael Reggiani Manzo's avatar Rafael Reggiani Manzo

Extract common simplecov configs into an file

This will help avoiding duplication and make easier to enable coverage
thresholds.
parent afed906f
Pipeline #3685860 passed with stage
in 25 minutes and 51 seconds
SimpleCov.start 'rails' do
add_group "Jobs", "app/jobs"
add_group "Channels", "app/channels"
add_filter '/spec/'
add_filter '/config/'
add_filter '/features/'
add_filter '/app/channels/'
add_filter '/app/jobs/'
add_filter '/app/mailers/'
add_filter '/tmp/'
end
# Uncomment this to fail tests if the coverage has not been met
# Remember that the tag :nocov: exists, but do not abuse of it :)
# SimpleCov.minimum_coverage 100
\ No newline at end of file
require 'simplecov'
SimpleCov.start 'rails' do
coverage_dir 'coverage/cucumber'
add_filter '/spec/'
add_filter '/config/'
add_filter '/app/channels/'
add_filter '/app/jobs/'
end
SimpleCov.coverage_dir("coverage/cucumber")
# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.
# It is recommended to regenerate this file in the future when you upgrade to a
......
require 'simplecov'
SimpleCov.start 'rails' do
# Minimum coverage is only desired on CI tools when building the environment. CI is a
# default environment variable used by Travis. For reference, see here:
# https://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables
coverage_dir 'coverage/rspec'
add_filter '/spec/'
add_filter '/features/'
add_filter '/app/channels/'
add_filter '/app/jobs/'
add_filter '/app/mailers/'
add_filter '/tmp/'
end
SimpleCov.coverage_dir("coverage/rspec")
# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV['RAILS_ENV'] ||= 'test'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment