mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Return true from run method if successful
This commit is contained in:
parent
ebf04b360e
commit
36f9f2b434
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue