Keyboard

↓ ↑
move between the rows you can see
→
open a feature, then step into it
←
close a feature, or step out to the one above
Enter
go to the page in focus
Tab
the same rows, plus everything else on the page
/
search the whole report
m
open or close the navigation drawer
Esc
leave the search box, or close the drawer
?
this list

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.

expected outcome broken scenario
ScenarioRowIn markdown?In AsciiDoc?In HTML?On every cell of the row?
A row that heldA year divisible by four2004[.passed]#++2004++#<td class="cell passed"><span class="literal">2004</span></td>passed
A row that brokeA century year1900[.failed]#++1900++#<td class="cell failed"><span class="literal">1900</span></td>failed