FIX: Turbo tests exit codes

This commit is contained in:
Daniel Waterworth 2019-07-09 08:51:23 +01:00
parent f0f271cd5f
commit c3db5925a8
2 changed files with 14 additions and 5 deletions

View File

@ -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

View File

@ -53,6 +53,8 @@ module TurboTests
@reporter.finish
@threads.each(&:join)
@reporter.failed_examples.empty?
end
protected