Skip to content

Commit

Permalink
Change SimpleCov format for Codacy support
Browse files Browse the repository at this point in the history
  • Loading branch information
adamcrown committed Jul 2, 2023
1 parent ad83d91 commit 6bc94fd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions cache_crispies.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rspec', '~> 3.12.0'
spec.add_development_dependency 'rspec_junit_formatter', '~> 0.4'
spec.add_development_dependency 'simplecov', '~> 0.22'
spec.add_development_dependency 'simplecov-lcov', '~> 0.8'
end
16 changes: 15 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# frozen_string_literal: true

require 'simplecov'
SimpleCov.start
require 'simplecov-lcov'

SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true

SimpleCov.start do
enable_coverage :branch
formatter(
SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::HTMLFormatter,
SimpleCov::Formatter::LcovFormatter
])
)
end

require 'byebug'
require_relative '../lib/cache_crispies'
Expand Down

0 comments on commit 6bc94fd

Please sign in to comment.