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

Resolves a resource path from the classpath root

All 3 scenarios hold

A table can live in a classpath resource file instead of the annotation: @TableTest(resource = "external.table", encoding = "UTF-8").

The first three rules below call the loading API with those same arguments. Their tables can therefore show which paths resolve, what text the file's bytes become, and how loading fails.

The rules after them are driven by the very files shown. Each row comes from a line of the file rather than from the annotation.

The rule reads each file as UTF-8, and the column holds the lines of the file itself. A leading slash makes no difference, and the first row holds both spellings of a root path.

expected outcome broken scenario
ScenarioResource pathLines loaded from the file?
Path at the root
  • external.table
  • /external.table
  • Scenario | a | b | a + b?
  • Zero sum | 0 | 0 | 0
  • Zero right | 2 | 0 | 2
  • Two twos | 2 | 2 | 4
Path in a subfoldersubfolder/nested.table
  • Scenario | a | b | a - b?
  • Positive | 3 | 1 | 2
  • Negative | 1 | 3 | -2