def initialize(self, run_tracker, start_time=None):
    'Initialize with the given RunTracker.\n\n    TODO: See `RunTracker.start`.\n    '
    run_id = run_tracker.initialize()
    run_dir = os.path.join(self.get_options().reports_dir, run_id)
    html_dir = os.path.join(run_dir, 'html')
    safe_mkdir(html_dir)
    relative_symlink(run_dir, os.path.join(self.get_options().reports_dir, 'latest'))
    report = Report()
    outfile = StringIO()
    errfile = StringIO()
    capturing_reporter_settings = PlainTextReporter.Settings(outfile=outfile, errfile=errfile, log_level=Report.INFO, color=False, indent=True, timing=False, cache_stats=False, label_format=self.get_options().console_label_format, tool_output_format=self.get_options().console_tool_output_format)
    capturing_reporter = PlainTextReporter(run_tracker, capturing_reporter_settings)
    report.add_reporter('capturing', capturing_reporter)
    html_reporter_settings = HtmlReporter.Settings(log_level=Report.INFO, html_dir=html_dir, template_dir=self.get_options().template_dir)
    html_reporter = HtmlReporter(run_tracker, html_reporter_settings)
    report.add_reporter('html', html_reporter)
    run_tracker.run_info.add_info('default_report', html_reporter.report_path())
    port = ReportingServerManager().socket
    if port:
        run_tracker.run_info.add_info('report_url', 'http://localhost:{}/run/{}'.format(port, run_id))
    run_tracker.start(report, start_time)
Initialize with the given RunTracker.

TODO: See `RunTracker.start`.
def initialize(self, run_tracker, start_time=None):
    'Initialize with the given RunTracker.\n\n    TODO: See `RunTracker.start`.\n    '
    run_id = run_tracker.initialize()
    run_dir = os.path.join(self.get_options().reports_dir, run_id)
    html_dir = os.path.join(run_dir, 'html')
    safe_mkdir(html_dir)
    relative_symlink(run_dir, os.path.join(self.get_options().reports_dir, 'latest'))
    report = Report()
    outfile = StringIO()
    errfile = StringIO()
    capturing_reporter_settings = PlainTextReporter.Settings(outfile=outfile, errfile=errfile, log_level=Report.INFO, color=False, indent=True, timing=False, cache_stats=False, label_format=self.get_options().console_label_format, tool_output_format=self.get_options().console_tool_output_format)
    capturing_reporter = PlainTextReporter(run_tracker, capturing_reporter_settings)
    report.add_reporter('capturing', capturing_reporter)
    html_reporter_settings = HtmlReporter.Settings(log_level=Report.INFO, html_dir=html_dir, template_dir=self.get_options().template_dir)
    html_reporter = HtmlReporter(run_tracker, html_reporter_settings)
    report.add_reporter('html', html_reporter)
    run_tracker.run_info.add_info('default_report', html_reporter.report_path())
    port = ReportingServerManager().socket
    if port:
        run_tracker.run_info.add_info('report_url', 'http://localhost:{}/run/{}'.format(port, run_id))
    run_tracker.start(report, start_time)