Finish implementation

This commit is contained in:
Joachim Jablon
2021-09-25 11:54:56 +02:00
parent ebcebf7ed6
commit 06fec5ce93
15 changed files with 342 additions and 309 deletions

29
src/default.md.j2 Normal file
View File

@@ -0,0 +1,29 @@
## Coverage report
{% if previous_coverage -%}
The coverage rate went from `{{ previous_coverage }}%` to `{{ coverage }}%` {{
":arrow_up:" if previous_coverage < coverage else
":arrow_down:" if previous_coverage > coverage else
":arrow_right:"
}}
{%- else -%}
The coverage rate is `{{ coverage }}%`
{%- endif %}
{% if branch_coverage -%}
The branch rate is `{{ branch_coverage }}%`
{%- endif %}
`{{ diff_coverage }}%` of new lines are covered.
{%if file_info -%}
<details>
<summary>Diff Coverage details (click to unfold)</summary>
{% for filename, stats in file_info.items() -%}}
### {{ filename }}
`{{ stats.diff_coverage }}%` of new lines are covered
{%- endfor %}
{%- endif -%}
</details>
{{ marker }}