Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveCoverageDir ¶
ResolveCoverageDir attempts to resolve the coverage directory from the 'TXTARCOVERDIR' environment variable first, and if not set, from the 'test.txtarcoverdir' flag. It returns the resolved directory and a boolean indicating if the resolution was successful.
func SetupGno ¶
func SetupGno(p *testscript.Params, buildDir string) error
SetupGno prepares the given testscript environment for tests that utilize the gno command. If the `gno` binary doesn't exist, it's built using the `go build` command into the specified buildDir. The function also include the `gno` command into `p.Cmds` to and wrap environment into p.Setup to correctly set up the environment variables needed for the `gno` command.
func SetupTestscriptsCoverage ¶
func SetupTestscriptsCoverage(p *testscript.Params, coverdir string) error
SetupTestscriptsCoverage sets up the given testscripts environment for coverage. It will mostly override `GOCOVERDIR` with the target cover directory
Types ¶
This section is empty.