.simplecov in berkeley_library-logging-0.2.1 vs .simplecov in berkeley_library-logging-0.2.2
- old
+ new
@@ -1,4 +1,15 @@
SimpleCov.start 'rails' do
add_filter 'module_info.rb'
- formatter SimpleCov::Formatter::SimpleFormatter
+
+ if ENV['GITHUB_ACTION']
+ formatter SimpleCov::Formatter::SimpleFormatter
+ else
+ # TODO: figure out why this doesn't work in CI
+ require 'simplecov-rcov'
+ coverage_dir 'artifacts'
+
+ SimpleCov.collate Dir['artifacts/simplecov/**/.resultset.json'] do
+ formatter SimpleCov::Formatter::RcovFormatter
+ end
+ end
end