Records a row's verdict on every cell of it
All 2 scenarios hold
A published table carries more than its text. The reporter marks which column names the scenario, and which column holds the expectation. It also records how each row fared when it ran.
A mark needs somewhere to live, and the three formats put one in different places. HTML sets a class on the cell. AsciiDoc puts a role prefix on the value. Markdown has nowhere at all. The rules below therefore print the cell each format published, and never name the mark. A reader can then see the difference.
Each rule names the sample test class it reads. Its rows are the columns, or the rows, of that class's table.
The reporter generates the report from a test run, so the report states what happened, and not only what somebody wrote. Every cell of a row carries that row's verdict. A reader can then see whether the spec still holds.
The Year cell below stands for the whole row. The last column is the verdict every cell of that row carries, so a row whose cells disagreed would not read as one word. Markdown carries no mark, and therefore no verdict.
These rows read LeapYearSample, whose century row claims the wrong answer on purpose.
| Scenario | Row | In markdown? | In AsciiDoc? | In HTML? | On every cell of the row? |
|---|---|---|---|---|---|
| A row that held | A year divisible by four | 2004 | [.passed]#++2004++# | <td class="cell passed"><span class="literal">2004</span></td> | passed |
| A row that broke | A century year | 1900 | [.failed]#++1900++# | <td class="cell failed"><span class="literal">1900</span></td> | failed |