printTo

fun TestNodeSelection.printTo(appendable: Appendable, maxDepth: Int = Int.MAX_VALUE)

Prints all the available node information into the given appendable.

A typical use-case for this API could be printing the node hierarchy into a stream or file, as the case may be, using the java.io.OutputStreamWriter or java.io.FileWriter APIs accordingly

maxDepth can be used to configure how deep into the hierarchy to print. 0 will print just this node, and Int.MAX_VALUE effectively prints the whole hierarchy. By default, the whole hierarchy will be printed.

See also


fun TestNodeCollectionSelection.printTo(appendable: Appendable, maxDepth: Int = 0)

Prints all the matching nodes in the collection into the given appendable.

maxDepth can be used to configure how deep into the hierarchy of each node to print. 0 will print just the node, and Int.MAX_VALUE effectively prints the whole hierarchy. By default, this does not print the sub-hierarchy of the matching modes.

See also