Skip to content

Commit

Permalink
Only set coverage criteria if coverage is active
Browse files Browse the repository at this point in the history
  • Loading branch information
brrygrdn committed Mar 24, 2021
1 parent b579994 commit dd1248b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions go_modules/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ def require_common_spec(path)

require "#{common_dir}/spec/spec_helper.rb"

# TODO: Bring branch coverage up
SimpleCov.minimum_coverage line: 80, branch: 65
if ENV["COVERAGE"]
# TODO: Bring branch coverage up
SimpleCov.minimum_coverage line: 80, branch: 65
end
6 changes: 4 additions & 2 deletions nuget/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ def require_common_spec(path)

require "#{common_dir}/spec/spec_helper.rb"

# TODO: Bring branch coverage up
SimpleCov.minimum_coverage line: 80, branch: 65
if ENV["COVERAGE"]
# TODO: Bring branch coverage up
SimpleCov.minimum_coverage line: 80, branch: 65
end
6 changes: 4 additions & 2 deletions terraform/spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ def require_common_spec(path)

require "#{common_dir}/spec/spec_helper.rb"

# TODO: Bring branch coverage up
SimpleCov.minimum_coverage line: 80, branch: 55
if ENV["COVERAGE"]
# TODO: Bring branch coverage up
SimpleCov.minimum_coverage line: 80, branch: 55
end

0 comments on commit dd1248b

Please sign in to comment.