File | Statements | Missing | Coverage | Coverage (new lines) | Lines missing |
---|---|---|---|---|---|
{{ filename }} | + +{%- for file in files_in_folder -%} +{%- set path = file.coverage.path -%} +|||||
{{ diff_file.path.name }} | + +{#- Statements cell -#} +{{- statements_badge( + path=path, + statements_count=file.coverage.info.num_statements, + previous_statements_count=(file.previous.coverage.info.num_statements if file.previous else None), +) -}} + +{#- Missing cell -#} +{{- missing_lines_badge( + path=path, + statements_count=file.coverage.info.missing_lines, + previous_statements_count=(file.previous.coverage.info.missing_lines if file.previous else None), +) -}} + +{#- Coverage rate -#} +{{- coverage_rate_badge( + path=path, + coverage_rate=file.coverage.info.percent_covered, + previous_coverage_rate=(file.previous.coverage.info.percent_covered if file.previous else None), +) -}} + +{# Coverage of added lines #} +{{- diff_coverage_rate_badge( + path=path, + added_statements_count=(file.diff.added_statements | length if file.diff else None), + covered_statements_count=(file.diff.covered_statements | length if file.diff else None), + percent_covered=(file.diff.percent_covered if file.diff else None) +) -}} + +{# Link to missing lines #} ++ +{%- set comma = joiner() -%} +{%- for group in missing_diff_lines.get(path, []) -%} + + +{{- comma() -}} +{{- group.line_start -}} +{%- if group.line_start != group.line_end -%} +- +{{- group.line_end -}} +{%- endif -%} + + +{%- endfor -%} + | + +{%- endfor -%} +{%- endfor -%} +||||
Project Total | + +{#- Statements cell -#} +{{- statements_badge( + path="the whole project", + statements_count=coverage.info.num_statements, + previous_statements_count=(previous_coverage.info.num_statements if previous_coverage else None), +) -}} + +{#- Missing cell -#} +{{- missing_lines_badge( + path="the whole project", + statements_count=coverage.info.missing_lines, + previous_statements_count=(previous_coverage.info.missing_lines if previous_coverage else None), +) -}} + +{#- Coverage rate -#} +{{- coverage_rate_badge( + path="the whole project", + coverage_rate=coverage.info.percent_covered, + previous_coverage_rate=(previous_coverage.info.percent_covered if previous_coverage else None), +) -}} + +{# Coverage of added lines #} +{{- diff_coverage_rate_badge( + path="the whole project", + added_statements_count=(file.diff.added_statements | length if file.diff else None), + covered_statements_count=(file.diff.covered_statements | length if file.diff else None), + percent_covered=(file.diff.percent_covered if file.diff else None) +) -}} + ++ |