Skip to content

Commit

Permalink
Change spec runner to exit with failure for focus: true (crystal-la…
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota authored Aug 29, 2023
1 parent 2155979 commit 63e2342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spec/dsl.cr
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ module Spec
def self.finish_run
elapsed_time = Time.monotonic - @@start_time.not_nil!
root_context.finish(elapsed_time, @@aborted)
exit 1 if !root_context.succeeded || @@aborted
exit 1 if !root_context.succeeded || @@aborted || (focus? && ENV["SPEC_FOCUS_NO_FAIL"]? != "1")
end

# :nodoc:
Expand Down

0 comments on commit 63e2342

Please sign in to comment.