Writes the declared front matter above a text page
All 6 scenarios hold
A site generator reads an AsciiDoc or Markdown page. The generator decides how that page looks and where it sits in the site. Front matter is what a project tells the generator. Declare it once, in the frontMatter section of the tabletest-reporter.yaml sidecar. The reporter then writes it above every page of a text report. An HTML page carries none, because it is a finished page and not source for a generator.
Both rules below read a report of two test classes in one package, com.example.orders.OrderTest and com.example.orders.ProductTest, with one table each.
Each format takes the shape its own tooling reads. Markdown fences a YAML block. AsciiDoc writes document attributes. The keys hold the order you declared them in, so a reader meets the block as you wrote it.
Markdown fences YAML, so the reporter writes a value as it stands only where YAML reads that value back as the same text. It adds the quotes where YAML would not: around a value holding a colon, and around one a reader takes for a number or a boolean. An AsciiDoc attribute is not YAML and takes every value as it stands.
| Scenario | Format | Declared | Page opens with? |
|---|---|---|---|
| A section of literal keys | markdown |
|
|
| A section of literal keys | asciidoc |
|
|
| Values YAML would misread | markdown |
|
|
| Values YAML would misread | asciidoc |
|
|
| No front matter declared | markdown |
| |
| No front matter declared | asciidoc |
|