1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Separated @counter and @tally so that "-ft" works with "-j"

This commit is contained in:
Nobuyoshi Nakada 2019-11-05 17:08:51 +09:00
parent fa52a924aa
commit c6a52cffd1
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -5,7 +5,8 @@ module MultiFormatter
end
def multi_initialize
@counter = @tally = Tally.new
@tally = TallyAction.new
@counter = @tally.counter
@timer = TimerAction.new
@timer.start
end
@ -31,11 +32,11 @@ module MultiFormatter
if d # The file might be empty if the child process died
@exceptions += Array(d['exceptions'])
@tally.files! d['files']
@tally.examples! d['examples']
@tally.expectations! d['expectations']
@tally.errors! d['errors']
@tally.failures! d['failures']
@counter.files! d['files']
@counter.examples! d['examples']
@counter.expectations! d['expectations']
@counter.errors! d['errors']
@counter.failures! d['failures']
end
end
end