Skip to content

Commit

Permalink
Add better logging to output so it's clear that tests passed
Browse files Browse the repository at this point in the history
  • Loading branch information
Brad Wedell authored and gondalez committed Jul 11, 2017
1 parent 7c7390c commit 8174b73
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/cucumber/runtime.rb
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,11 @@ def failure?
if @configuration.wip?
summary_report.test_cases.total_passed > 0
elsif @configuration.retry_attempts > 0
summary_report.test_cases.total_passed != @configuration.total_cases
unless summary_report.test_cases.total_passed != @configuration.total_cases
Cucumber.logger.info "All retried test cases passed!\n" if summary_report.test_cases.total_failed > 0
return false
end
true
else
summary_report.test_cases.total_failed > 0 || summary_report.test_steps.total_failed > 0 ||
(@configuration.strict? && (summary_report.test_steps.total_undefined > 0 || summary_report.test_steps.total_pending > 0))
Expand Down

0 comments on commit 8174b73

Please sign in to comment.