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
end end
success =
TurboTests::Runner.run( TurboTests::Runner.run(
formatters: formatters, formatters: formatters,
files: ARGV.empty? ? ["spec"] : ARGV, files: ARGV.empty? ? ["spec"] : ARGV,
verbose: verbose verbose: verbose
) )
if success
exit 0
else
exit 1
end

View File

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