{%- assign passed = run.test_run_statistics.passed_count -%}
{%- assign failed = run.test_run_statistics.failed_count -%}
{%- assign skipped = run.test_run_statistics.skipped_count -%}
{%- assign total = run.test_run_statistics.executed_tests_count -%}
{%- assign pass_percentage = passed | divided_by: total | as_percentage *-%}
{%- assign failed_percentage = failed | divided_by: total | as_percentage *-%}
{%- assign skipped_percentage = skipped | divided_by: total | as_percentage *-%}
{%- assign information = run.messages | where: "level", "Informational" -%}
{%- assign warnings = run.messages | where: "level", "Warning" -%}
{%- assign errors = run.messages | where: "level", "Error" -%}
{%- if passed == total -%}
{%- assign overall = "✔️ Pass" *-%}
{%- elsif failed == 0 -%}
{%- assign overall = "
Overall Result: {{overall}}
Pass Rate: {{pass_percentage}}
Run Duration: {{ run.elapsed_time_in_running_tests | format_duration }}
Date: {{ run.started | local_time | date: '%Y-%m-%d %H:%M:%S' }} - {{ run.finished | local_time | date: '%Y-%m-%d %H:%M:%S' }}
Framework: {{ parameters.TargetFramework }}
Total Tests: {{total}}
✔️ Passed | ❌ Failed | |
---|---|---|
{{passed}} | {{failed}} | {{skipped}} |
{{pass_percentage}} | {{failed_percentage}} | {{skipped_percentage}} |
{%- for set in run.result_sets -%}
{{ set.source | path_split | last }} - {{set.passed_count | divided_by: set.executed_tests_count | as_percentage }}
Full Results
{%- for result in set.results -%} {%- endfor -%}Result | Test | Duration |
---|---|---|
{% case result.outcome %} {% when 'Passed' %}✔️{% when 'Failed' %}❌{% else %} |
{{- result.test_case.display_name -}}
{%- if result.outcome == 'Failed' and library.parameters.IncludeMessages == true -%}
{%- endif -%} |
{{ result.duration | format_duration }} |
Informational
{%- for message in information -%}
{{ message.message }}
{%- endfor -%}
Warning
{%- for message in warnings -%}
{{message.message}}
{%- endfor -%}
Error
{%- for message in errors -%}
{{message.message}}
{%- endfor -%}
{%- endif -%}
[{{ library.text }}]({{ library.link }})