{{ spec.name }}
{% if spec.description %}
{{ spec.description }}
{% endif %}
File: {{ spec.file_path.name }}
Generated: {{ generated_date }}
Scenarios: {{ spec.scenarios | length }}
{% if spec.context_md %}
Context
{{ spec.context_md | render_markdown }}
{% endif %} {% if spec.scenarios %}
Scenarios
{% for scenario in spec.scenarios %}
{% if scenario.is_outline %}Scenario Outline{% else %}Scenario{% endif %} {{ loop.index }} of {{ spec.scenarios | length }}
{{ scenario.name }}
{% if scenario.tags %}
{% for tag in scenario.tags %}
@{{ tag }}
{% endfor %}
{% endif %}
{% if scenario.custom_blocks %}
{% for block in scenario.custom_blocks %}
{{ block.keyword }}
{% if block.value %}
{{ block.value }}
{% endif %} {% if block.items %}
{% for item in block.items %}
{{ item }}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %} {% if scenario.steps %} {% set sc_state = run_state.get(loop.index0 | string, {}) %}
{% for step in scenario.steps %} {% set step_done = sc_state.get('steps', {}).get(loop.index0 | string, false) %}
{{ step.keyword }}
{{ step.text | highlight_values }}
{% endfor %}
{% endif %} {% if scenario.examples %} {% for ex in scenario.examples %}
Examples{% if ex.name %}: {{ ex.name }}{% endif %}
{% for col in ex.columns %}
{{ col }}
{% endfor %}
{% for row in ex.rows %}
{% for cell in row %}
{{ cell }}
{% endfor %}
{% endfor %}
{% endfor %} {% endif %} {% set sc_state = run_state.get(loop.index0 | string, {}) %} {% if sc_state.get('result') or sc_state.get('notes') %}
{% if sc_state.get('result') %}
{{ sc_state.result | upper }}
{% endif %} {% if sc_state.get('notes') %}
Notes:
{{ sc_state.notes }}
{% endif %}
{% endif %}
{% endfor %}
{% endif %} {% if spec.notes_md %}
Notes
{{ spec.notes_md | render_markdown }}
{% endif %}