Skip to content
代码片段 群组 项目
提交 34c3c94e 编辑于 作者: Alina Mihaila's avatar Alina Mihaila 提交者: Rémy Coutable
浏览文件

Rescue for file not found in rspec:undercoverage

上级 05e2bb15
No related branches found
No related tags found
无相关合并请求
......@@ -21,6 +21,13 @@ end
compare_base = ARGV[0]
compare_base ||= IO.popen(%w(git merge-base origin/master HEAD)) { |p| p.read.chomp }
coverage_file_path = 'coverage/lcov/gitlab.lcov'
result = if File.exist?(coverage_file_path)
Undercover::CLI.run(%W(-c #{compare_base}))
else
warn "#{coverage_file_path} doesn't exist"
0
end
result = Undercover::CLI.run(%W(-c #{compare_base}))
exit result
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册