Commit 4a2a3da1 authored by Rémy Coutable's avatar Rémy Coutable

ci: Make `rspec:coverage` gracefully exit with no coverage file

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 0823ef32
......@@ -5,4 +5,7 @@ require_relative '../spec/simplecov_env'
SimpleCovEnv.configure_profile
SimpleCovEnv.configure_formatter
SimpleCov.collate Dir.glob(File.join(SimpleCov.coverage_path, '*', '.resultset.json'))
resultset_files = Dir.glob(File.join(SimpleCov.coverage_path, '*', '.resultset.json'))
exit(0) if resultset_files.empty?
SimpleCov.collate(resultset_files)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment