{% set base_url = [server, '/%s/%s/' % (group.slug, project.slug)]|join %}
{% if intro %}
{{ intro }}
{% endif %}

Details for build {{ build.version }}

{% for key, value in build.metadata.__dict__.items() %} {% if value is iterable and value is not string %} {% endfor %} {% else %} {% endif %} {% endfor %} {% for env in envs_summaries.keys() %} {% endfor %}
{{key}} {% for v in value %}
{% if v|string and v is not mapping and v.startswith('http') %} {{ v }} {% else %} {{ v }} {% endif %}
{{key}} {% if value is not number and value is string and value.startswith('http') %} {{ value }} {% else %} {{ value }} {% endif %}
{{env}}
Pass Fail Xfail Skip
{{envs_summaries[env]['pass']}} {{envs_summaries[env]['fail']}} {{envs_summaries[env]['xfail']}} {{envs_summaries[env]['skip']}}
Total Pass Summary {{ build.status.tests_pass if build.status.tests_pass else 0 }}
Total Fail Summary {{ build.status.tests_fail if build.status.tests_fail else 0 }}
Total Skip Summary {{ build.status.tests_skip if build.status.tests_skip else 0}}
Total Xfail Summary {{ build.status.xfail if build.status.xfail else 0}}
Total Tests {{ build.status.tests_total }}

LAVA test results

{% for env_name, env_results in environments.items() %}

{{ env_name }}

{% for suite_name, results in env_results.items() %} {% for test in results %} {% if test.status %} {% set url = 'test/' + test.short_name + "/details/" %} {% else %} {% set url = 'metrics' %} {% endif %} {% endfor %} {% endfor %}
Test Suite Test Result
{{ suite_name }}
{{ test.short_name }} {{ test.status if test.status else test.result}}
{% endfor %}