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