Skip to content

Commit 1fec5e4

Browse files
committed
Use Cucumber::Core::Report::Summary to calculate the exit code
1 parent 73a660a commit 1fec5e4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/cucumber/runtime.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,7 @@ def failure?
229229
if @configuration.wip?
230230
summary_report.test_cases.total_passed > 0
231231
else
232-
summary_report.test_cases.total_failed > 0 || summary_report.test_steps.total_failed > 0 ||
233-
(@configuration.strict? && (summary_report.test_steps.total_undefined > 0 || summary_report.test_steps.total_pending > 0))
232+
!summary_report.ok?(@configuration.strict?)
234233
end
235234
end
236235
public :failure?

0 commit comments

Comments
 (0)