Skip to content

Commit

Permalink
Add spec/support/coverage.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
File Sync committed Sep 21, 2023
1 parent 8926930 commit 6cda80c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions spec/support/coverage.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# frozen_string_literal: true

# this file is managed by dry-rb/devtools

if ENV["COVERAGE"] == "true"
require "simplecov"
require "simplecov-cobertura"

SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter

SimpleCov.start do
add_filter "/spec/"
enable_coverage :branch
end
end

0 comments on commit 6cda80c

Please sign in to comment.