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

Makes one page for each package, class, and table

All 5 scenarios hold

Nobody chooses the shape of a report. The shape follows the packages of the test classes that published. Each row below writes a published table as the class that ran it and the method that holds it.

The indexDepth option says how much of the tree gets an index page. That option has a feature of its own, beside this one.

A nested test class is a page below its outer class, and the outer class becomes an index page even when it publishes no table of its own. That index page is the one page the reporter names after the Java class rather than after its slug, which is why the row below reads OrderTest beside product-test. Open: whether it should carry the slug the other class pages carry.

expected outcome broken scenario
ScenarioPublished tablesPage tree?
One class with one table
  • pkg.OrderTest#items
pkg
  • order-test
    • items
One class with two tables
  • pkg.OrderTest#items
  • pkg.OrderTest#totals
pkg
  • order-test
    • items
    • totals
Two classes in one package
  • pkg.OrderTest#items
  • pkg.ProductTest#price
pkg
  • order-test
    • items
  • product-test
    • price
Two classes in sibling packages
  • pkg.orders.OrderTest#items
  • pkg.products.ProductTest#price
pkg
  • orders
    • order-test
      • items
  • products
    • product-test
      • price
A nested test class
  • pkg.OrderTest$WhenEmpty#items
  • pkg.ProductTest#price
pkg
  • OrderTest
    • when-empty
      • items
  • product-test
    • price