Skip to content

Latest commit

 

History

History
122 lines (111 loc) · 3.2 KB

File metadata and controls

122 lines (111 loc) · 3.2 KB

{%- 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 = "⚠️ Indeterminate" *-%} {%- else -%} {%- assign overall = "❌ Fail" *-%} {%- endif -%}

{{ library.parameters.Title }}

Run Summary

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 ⚠️ Skipped
{{passed}} {{failed}} {{skipped}}
{{pass_percentage}} {{failed_percentage}} {{skipped_percentage}}

Result Sets

{%- 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 %}⚠️{% endcase %} {{ result.outcome }} {{- result.test_case.display_name -}} {%- if result.outcome == 'Failed' and library.parameters.IncludeMessages == true -%}
Error Message:
{{result.error_message}}
Stack Trace:
{{result.error_stack_trace}}
{%- endif -%}
{{ result.duration | format_duration }}
{%- endfor -%} {%- if library.parameters.IncludeMessages == true -%}

Run Messages

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 }})