-
Notifications
You must be signed in to change notification settings - Fork 92
/
Copy pathspec_helper.rb
33 lines (26 loc) · 1.21 KB
/
spec_helper.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# frozen_string_literal: true
require 'simplecov'
require 'simplecov-lcov'
SimpleCov::Formatter::LcovFormatter.config do |c|
c.report_with_single_file = true # vscode-coverage-gutters prefers a single file for lcov reporting
c.output_directory = 'coverage' # vscode-coverage-gutters default directory path is 'coverage'
c.lcov_file_name = 'lcov.info' # vscode-coverage-gutters default report filename is 'lcov.info'
end
SimpleCov.start do
enable_coverage :branch
formatter SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::LcovFormatter, # Add Lcov as an output when generating code coverage report
SimpleCov::Formatter::HTMLFormatter # Add other outputs for the code coverage report
])
end
require 'bundler/setup'
require 'app'
RSpec.configure do |config|
# Enable flags like --only-failures and --next-failure
config.example_status_persistence_file_path = '.rspec_status'
# Disable RSpec exposing methods globally on `Module` and `main`
config.disable_monkey_patching!
config.expect_with :rspec do |c|
c.syntax = :expect
end
end