This commit is contained in:
Joachim Jablon
2021-09-25 09:50:58 +02:00
parent 38b2cf6c65
commit ebcebf7ed6
8 changed files with 272 additions and 84 deletions

28
tool/default.md.j2 Normal file
View File

@@ -0,0 +1,28 @@
## 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.
<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 %}}
</details>
{{ marker }}