{% macro print_failed_scenario_details(dtls) -%} {% if dtls is string %} {# plain text #} {% for line in dtls.splitlines() %}

{{ line }}

{% endfor %} {% else %} {# structured report #} {% if dtls.nodeid %} Test run flags: -F '{{ dtls.nodeid }}' {% endif %} {% if dtls.steps %}
{% for step in dtls.steps %} {{ step.keyword }} {{ step.name }}

{% endfor %}
{% endif %} {% if dtls.traceback %}
{{ dtls.traceback }}
{% endif %} {% if dtls.links %} {% endif %} {% endif %} {%- endmacro %} {% if diff is defined %} {% endfor %}

Difference between {{ ref.split('/yandsearch')[0] }} and {{ test.split('/yandsearch')[0] }}

{% for scenario, dtls in diff.iteritems()|sort %}
{{ scenario }}
{{ print_failed_scenario_details(dtls) }}
{% else %}

There is no difference between {{ ref.split('/yandsearch')[0] }} and {{ test.split('/yandsearch')[0] }}

{% endif %} {% if test_details is defined %} {% if test_details.stats is defined %}

Statistics for {{ test.split('/yandsearch')[0] }}

{{ test_details.stats.features[0] }}
{{ test_details.stats.scenarios[0] }}
{{ test_details.stats.steps[0] }}
{% endif %} {% if test_details.details is defined %} {% for scenario, dtls in test_details.details.iteritems()|sort %} {% endfor %}

Failed scenarios

{{ scenario }}
{{ print_failed_scenario_details(dtls) }}
{% else %}

Processing...

{% endif %} {% endif %}