Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 6 additions & 11 deletions .simplecov
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
# frozen_string_literal: true

SimpleCov.start do
track_files 'lib/**/*.rb'
add_filter 'lib/reek/version.rb' # version.rb is loaded too early to test
add_filter 'lib/reek/cli/options.rb' # tested mostly via integration tests
add_filter 'spec/'
add_filter 'samples/'
SimpleCov.configure do
cover 'lib/**/*.rb'
skip 'lib/reek/version.rb' # version.rb is loaded too early to test
skip 'lib/reek/cli/options.rb' # tested mostly via integration tests
coverage_dir 'tmp/coverage'
enable_coverage :branch
end

SimpleCov.at_exit do
SimpleCov.result.format!
unless RUBY_ENGINE == 'jruby'
SimpleCov.minimum_coverage 98.88
SimpleCov.minimum_coverage_by_file 81.4
minimum_coverage 98.88
coverage(:line) { minimum_per_file 81.4 }
end
end
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ gem 'rspec-benchmark', '~> 0.6.0'
gem 'rubocop', '~> 1.89.0'
gem 'rubocop-performance', '~> 1.26.0'
gem 'rubocop-rspec', '~> 3.10.2'
gem 'simplecov', '~> 0.22.0'
gem 'simplecov', '~> 1.0'
gem 'yard', '~> 0.9.5'

# Needed for YARD to properly parse GFM code blocks in the documentation
Expand Down
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

SimpleCov.start if defined? SimpleCov

require 'pathname'
require 'timeout'
require 'rspec-benchmark'
Expand Down