ci(circleci): switch coverage reporting to Qlty orb (#12337)
This commit is contained in:
8
spec/coverage_helper.rb
Normal file
8
spec/coverage_helper.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
require 'simplecov'
|
||||
require 'simplecov_json_formatter'
|
||||
|
||||
# Configure SimpleCov to emit JSON for Qlty and HTML locally if needed
|
||||
SimpleCov.formatter = SimpleCov::Formatter::JSONFormatter
|
||||
SimpleCov.start 'rails' do
|
||||
SimpleCov.coverage_dir 'coverage'
|
||||
end
|
||||
@@ -1,7 +1,5 @@
|
||||
require 'simplecov'
|
||||
require 'webmock/rspec'
|
||||
|
||||
SimpleCov.start 'rails'
|
||||
WebMock.disable_net_connect!(allow_localhost: true)
|
||||
|
||||
RSpec.configure do |config|
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
ENV['RAILS_ENV'] ||= 'test'
|
||||
require 'simplecov'
|
||||
SimpleCov.start 'rails'
|
||||
|
||||
require File.expand_path('../config/environment', __dir__)
|
||||
require 'rails/test_help'
|
||||
|
||||
Reference in New Issue
Block a user