Return true from run method if successful

This commit is contained in:
Michael Miller 2021-05-16 20:23:16 -06:00
parent ebf04b360e
commit 36f9f2b434
No known key found for this signature in database
GPG key ID: FB9F12F7C646A4AD
2 changed files with 4 additions and 4 deletions

View file

@ -13,7 +13,9 @@ module Spectator
end
# Runs all selected examples and returns the results.
def run
# True will be returned if the spec ran successfully,
# or false if there was at least one failure.
def run : Bool
runner = Runner.new(examples, @config.formatter, @config.run_flags)
runner.run
end

View file

@ -34,9 +34,7 @@ module Spectator
profile = Profile.generate(@examples) if @run_flags.profile? && report.counts.run > 0
summarize(report, profile)
false # TODO: Report real result
report.counts.fail.zero?
ensure
close
end