    # File lib/merb-core/test/run_specs.rb, line 32
        def add(spec, out, err)
          @mutex.synchronize do
            puts
            puts "Running #{spec}."
            STDOUT.puts out
            STDOUT.flush
            match = out.match(/(\d+) examples?, (\d+) failures?(?:, (\d+) errors?)?(?:, (\d+) pending?)?/m)
            time = out.match(/Finished in (\d+\.\d+) seconds/)
            @total_time += time[1].to_f if time
            if match
              e, f, errors, pending = match[1..-1]
              @examples += e.to_i
              @failures += f.to_i
              @errors += errors.to_i
              @pending += pending.to_i
            end
            unless err.chomp.empty?
              @err << err.chomp << "\n"
            end
          end
        end