FIX: Turbo tests exit codes
This commit is contained in:
parent
f0f271cd5f
commit
c3db5925a8
|
@ -50,8 +50,15 @@ formatters.each do |formatter|
|
|||
end
|
||||
end
|
||||
|
||||
TurboTests::Runner.run(
|
||||
formatters: formatters,
|
||||
files: ARGV.empty? ? ["spec"] : ARGV,
|
||||
verbose: verbose
|
||||
)
|
||||
success =
|
||||
TurboTests::Runner.run(
|
||||
formatters: formatters,
|
||||
files: ARGV.empty? ? ["spec"] : ARGV,
|
||||
verbose: verbose
|
||||
)
|
||||
|
||||
if success
|
||||
exit 0
|
||||
else
|
||||
exit 1
|
||||
end
|
||||
|
|
|
@ -53,6 +53,8 @@ module TurboTests
|
|||
@reporter.finish
|
||||
|
||||
@threads.each(&:join)
|
||||
|
||||
@reporter.failed_examples.empty?
|
||||
end
|
||||
|
||||
protected
|
||||
|
|
Loading…
Reference in New Issue