Documentation ¶
Overview ¶
Package starlarktest contains utilities for running Starlark tests.
It knows how to run all *.star tests from some particular directory, adding 'assert' module to their global dict and wiring their errors to testing.T.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HookThread ¶
HookThread makes a Starlark thread report errors and logs to the 't'.
Types ¶
type Options ¶
type Options struct { TestsDir string // directory to search for *.star files Skip string // directories with this name are skipped Predeclared starlark.StringDict // symbols to put into the global dict // Executor runs a single starlark test file. // // If nil, RunTests will simply use starlark.ExecFile(...). Executor func(t *testing.T, path string, predeclared starlark.StringDict) error }
Options describe where to discover tests and how to run them.
Click to show internal directories.
Click to hide internal directories.