Only include seed if report if randomized

This commit is contained in:
Michael Miller 2020-07-27 13:37:41 -06:00
parent e168b0ac7a
commit e5ed6418db
No known key found for this signature in database
GPG key ID: FB9F12F7C646A4AD

View file

@ -25,7 +25,8 @@ module Spectator
# Generate a report and pass it along to the formatter. # Generate a report and pass it along to the formatter.
remaining = @suite.size - results.size remaining = @suite.size - results.size
report = Report.new(results, elapsed, remaining, @config.fail_blank?, @config.random_seed?) seed = (@config.random_seed? if @config.randomize?)
report = Report.new(results, elapsed, remaining, @config.fail_blank?, seed)
@config.each_formatter(&.end_suite(report, profile(report))) @config.each_formatter(&.end_suite(report, profile(report)))
!report.failed? !report.failed?