Skip to content

Commit

Permalink
Handle non example failures
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbrowne committed Nov 24, 2017
1 parent 252fb1d commit 4267fbf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/rspec_queue/server_runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@ def run_specs(example_groups)
reporter.report(0) do |report|
@configuration.with_suite_hooks do
server.dispatch(example_group_hash, report)
[report.failed_examples.count, 1].min # exit status

# Exit status
if @configuration.world.non_example_failure
1
else
[report.failed_examples.count, 1].min
end
end
end
ensure
Expand Down

0 comments on commit 4267fbf

Please sign in to comment.