{% for test in tests %}
  1. {{ test.status.word }}
    {{ test.item.name }}
    {{ test.phases|sum('report.duration')|timedelta }}
    {% if test.item.function.__doc__ %}
    {{ test.item.function.__doc__|cleandoc|rst2html|safe }}
    {% endif %} {% set markers = test.item.iter_markers()|list %} {% if markers %} {% endif %} {% if test.item.fixturenames %} {% endif %}
      {% set ns = namespace(used_sections=[]) %} {% for phase in test.phases %} {% set sections = phase.report.sections|rejectattr(0, 'in', ns.used_sections)|list %}
    1. {{ phase.report.when|title }}
      {% if phase.report.longrepr %}
      {{ phase.report.longrepr }}
      {% endif %} {#
    2. Captured log {{ phase.report.when }}
        {% for record in phase.log_records %}
      1. {{ record.message }}
      2. {% endfor %}
    3. #} {% for section, content in sections %} {% set ns.used_sections = ns.used_sections + [section] %}
      {{ section }}
      {{ content|escape|replace('\r\n', '\n')|ansi|safe }}
      {% endfor %}
  2. {% endfor %}
{% endfor %}