Requires simplecov and related gems for both coverage and test ENV

This commit is contained in:
filipefurtad0
2024-08-07 22:02:37 +01:00
parent 10fbe71b07
commit f0ca26e1fb

View File

@@ -4,14 +4,14 @@
ENV["RAILS_ENV"] ||= 'test'
require 'simplecov' if ENV["COVERAGE"]
require 'simplecov-lcov'
require 'simplecov' if ENV["COVERAGE"] || ENV["RAILS_ENV"]
require 'simplecov-lcov' if ENV["COVERAGE"] || ENV["RAILS_ENV"]
SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.
new([
SimpleCov::Formatter::LcovFormatter,
])
require 'undercover'
require 'undercover' if ENV["COVERAGE"] || ENV["RAILS_ENV"]
require 'rubygems'
require 'pry' unless ENV['CI']