Skip to content
Novus Examples
md794 B

Coverage — Markdown Pull-Request Summary

The Markdown comment a coverage bot posts on a pull request: a headline percentage, a per-file table and the uncovered line numbers. Useful for testing Markdown table rendering and for checking that a bot's generated comment matches the machine-readable report it claims to summarise. Every file in this group describes the same four-file source tree and reports 127/140 lines, 17/24 branch outcomes and 18/20 functions, so a converter can be diffed against a known answer.

Preview — first 19 linesmd
# Coverage — Novus Checkout Service

Overall line coverage **90.71%** (127/140 lines), branch coverage **70.83%** (17/24), function coverage **90.00%** (18/20).

| File | Lines | Hit | Line % | Branches | Hit | Branch % |
| --- | ---: | ---: | ---: | ---: | ---: | ---: |
| `src/cart/pricing.js` | 44 | 40 | 90.91% | 8 | 6 | 75.00% |
| `src/cart/discounts.js` | 33 | 28 | 84.85% | 6 | 4 | 66.67% |
| `src/checkout/session.js` | 39 | 36 | 92.31% | 6 | 4 | 66.67% |
| `src/checkout/receipt.js` | 24 | 23 | 95.83% | 4 | 3 | 75.00% |
| **TOTAL** | **140** | **127** | **90.71%** | **24** | **17** | **70.83%** |

Uncovered lines by file:

- `src/cart/pricing.js`: 11, 20, 30, 39
- `src/cart/discounts.js`: 8, 13, 19, 25, 31
- `src/checkout/session.js`: 12, 23, 33
- `src/checkout/receipt.js`: 16

Specifications

Seed
61200
Source Files
4
Lines Found
140
Lines Hit
127
Line Pct
90.71
Branches Found
24
Branches Hit
17
Branch Pct
70.83
Functions Found
20
Functions Hit
18
Line Endings
LF
Format
GitHub-flavoured Markdown
Has Table
true
Table Rows
5
Lists Uncovered Lines
true

Testing contract

Reference control
Scenario
Check a generated coverage comment against the machine-readable report it summarises.
Expected result
The headline 90.71% and every table row match the LCOV, Cobertura, JaCoCo and Istanbul twins in this group.

What is a .md file?

Markdown (MD) is a lightweight plain-text markup language that uses simple punctuation conventions to denote headings, lists, links, emphasis, and code. It is designed to be readable as-is and to convert cleanly to HTML. It is widely used for documentation, READMEs, and content authoring.

How to use this file

Use an example Markdown file to test parsers and renderers, verify GitHub-Flavored Markdown extensions like tables and fenced code, and exercise HTML-conversion pipelines.

How to use this file for testing

“Coverage — Markdown Pull-Request Summary” is a deterministic Novus Examples fixture for Conversion testing, Editor testing, Schema validation. The same content exported across many formats and linked as a group, so you can convert one and diff against the expected twin.

Documented properties for this file: seed 61200 · LF · GitHub-flavoured Markdown. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

Test and coverage reports document their totals (suites, cases, passes, failures, skips, covered lines) in the spec table. Point your CI dashboard, coverage gate, or report converter at the file and assert those counts survive; format twins carry identical numbers so a conversion can be scored exactly.

Code examples

import markdown  # pip install markdown

html = markdown.markdown(open("coverage-summary.md").read())
print(html[:200])

Generated by generation/testing.py. Free for any use, no attribution required — license.