Skip to content

Commit

Permalink
Improve handling for missing coverage info
Browse files Browse the repository at this point in the history
ref: #25
  • Loading branch information
yhkaplan committed Nov 10, 2021
1 parent d72d527 commit 4f6cb5b
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions lib/danger_plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,16 @@ class DangerXcov < Plugin
# @return [void]
#
def report(*args)
# Run xcov to produce a processed report
report = produce_report(*args)
# Output the processed report
output_report(report)
begin
# Run xcov to produce a processed report
report = produce_report(*args)
# Output the processed report
output_report(report)
rescue => e
markdown("Xcov not run due to error: #{e}")
end
end

# Produces and processes a report for use in the report method
# It takes the same arguments as report, and returns the same
# object as process_report
Expand Down

0 comments on commit 4f6cb5b

Please sign in to comment.