Skip to content

Commit

Permalink
Use Cucumber::Core::Report::Summary to calculate the exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
brasmusson committed Jul 14, 2017
1 parent b7ab496 commit c5453f7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/cucumber/runtime.rb
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,7 @@ def failure?
if @configuration.wip?
summary_report.test_cases.total_passed > 0
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))
!summary_report.ok?(@configuration.strict?)
end
end
public :failure?
Expand Down

0 comments on commit c5453f7

Please sign in to comment.