TraceConfig

class TraceConfig(val root: Path, val filter: (String) -> Boolean, val includeScreenshots: Boolean)(source)

Configuration values for taking a trace at the export step.

You can read more about traces in the official documentation.

See also

Constructors

Link copied to clipboard
constructor(root: Path, filter: (String) -> Boolean, includeScreenshots: Boolean)

Properties

Link copied to clipboard

A filter which, if set, will be invoked for every route being exported to test if it should be traced. For example, to export all traces under the /admin/ route, you could set this to filter = { route -> route.startsWith("/admin/") }.

Link copied to clipboard

Whether to include screenshots in the final trace. This will increase the size of each trace, but it's highly encouraged to set this to true as it can be very helpful in debugging.

Link copied to clipboard
val root: Path

The root directory where traces should be saved.