Commit a9650d37 authored by Rafael Reggiani Manzo's avatar Rafael Reggiani Manzo

Fail CI with unit test coverage below 100%

This helps us into keeping the coverage.
parent 18413942
require 'simplecov'
SimpleCov.coverage_dir("coverage/rspec")
# Minimum coverage is only desired on CI tools when building the environment. CI is a
# default environment variable used by GitlabCI (and Travis). For reference, see here:
# http://docs.gitlab.com/ce/ci/variables/README.html
SimpleCov.minimum_coverage(100) if ENV["CI"] == 'true'
# 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