Skip to content

Commit 0ad8b1c

Browse files
committed
Adapt simplecov output format and versions
1 parent da093af commit 0ad8b1c

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

ruby-saml.gemspec

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ Gem::Specification.new do |s|
4747
end
4848

4949
s.add_development_dependency('simplecov', '<0.22.0')
50-
s.add_development_dependency('simplecov-lcov')
50+
if RUBY_VERSION < '2.4.1'
51+
s.add_development_dependency('simplecov-lcov', '<0.8.0')
52+
else
53+
s.add_development_dependency('simplecov-lcov', '>0.7.0')
54+
end
55+
5156
s.add_development_dependency('minitest', '~> 5.5')
5257
s.add_development_dependency('mocha', '~> 0.14')
5358

test/test_helper.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
require 'simplecov'
22
require 'simplecov-lcov'
33

4-
#SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true
4+
SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true
5+
SimpleCov::Formatter::LcovFormatter.config.output_directory = 'coverage'
6+
SimpleCov::Formatter::LcovFormatter.config.lcov_file_name = 'lcov.info'
57
SimpleCov.formatter = SimpleCov::Formatter::LcovFormatter
68
SimpleCov.start do
79
add_filter "test/"

0 commit comments

Comments
 (0)