Merge branch 'simplecov_coverage_on_ci' into 'master'

Simplecov report improvements

* Fixes #11 (wrong coverage report on CI).
* One configuration file to rule them all

See merge request !25
parents 3d9e25b0 4fae08a2
Pipeline #3686024 failed with stage
in 21 minutes and 2 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/'
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