{% set suite = suites if suites else None %}
{% macro render_suite_block(s, level) %}
{{ s.name }}
{{ s.test_count }} Tests in this suite {% if s.tests %} Suite File {% else %} Suite Directory {% endif %}
Suite Details
General information about the selected test suite
Name
{{ s.name }}
Source
{% if s.custom_source %} {{ s.custom_source }} {% else %} {{ s.source }} {% endif %}
Tests (total)
{{ s.test_count }}
Tests (direct)
{{ s.tests | length }}
{% if s.doc %}
Suite Documentation
{{ s.doc }}
{% endif %} {% if s.metadata %}
Metadata
Additional suite information
Metadata
{% endif %} {% if s.user_keywords %}
User Keywords
Defined user keywords in this suite
{% set code -%} *** Test Cases *** {{ s.user_keywords | join('\n') }} {%- endset %} {{ code | highlight_robot_in_pre | safe }}
{% endif %} {% if s.tests %}
Test Case OVERVIEW
Overview about test cases in this suite
{% set code -%} *** Test Cases *** {{ s.tests | map(attribute='name') | join('\n') }} {%- endset %} {{ code | highlight_robot_in_pre | safe }}
Test Case Details
Details for each test case in this suite
{% for test in s.tests %}
{{ test.name }}
Documentation
{% if test.doc %}
{{ test.doc }}
{% else %} No description. {% endif %}
Tags
{% if test.tags %}
{% for tag in test.tags %} {% if tag is mapping %} {{ tag.name or tag }} {% else %} {{ tag }} {% endif %} {% endfor %}
{% else %} No tags. {% endif %}
Test Case Body
{% if test.body %}
{% set code -%} *** Test Cases *** {{ test.name }} {{ test.body | format_test_body | join('\n ') }} {%- endset %} {{ code | highlight_robot_in_pre | safe }}
{% else %} No keywords. {% endif %}
{% endfor %}
{% endif %} {% if s.suites %}
Sub-suites
Structure of nested suites
{% macro render_suite_details(s2, level2) %}
{{ s2.name }} ({{ s2.test_count }} tests)
{{ s2.source }}
{% for child in s2.suites %} {{ render_suite_details(child, level2 + 1) }} {% endfor %} {% endmacro %} {{ render_suite_details(s, 0) }}
{% endif %}
{% for child in s.suites %} {{ render_suite_block(child, level + 1) }} {% endfor %} {% endmacro %}
{% if suites %} {{ render_suite_block(suites, 0) }} {% else %}

No suites available.

{% endif %}