Documentation ¶
Overview ¶
Package tastrun helps meta tests run the tast command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Exec ¶
func Exec(ctx context.Context, s *testing.State, subcmd string, flags, patterns []string) (stdout, stderr []byte, err error)
Exec execs the tast command using supplied arguments. subcmd contains the subcommand to use, e.g. "list" or "run". flags contains subcommand-specific flags. patterns contains a list of patterns matching tests. stdout.txt and stderr.txt output files are written unconditionally.
func NewCommand ¶
func NewCommand(ctx context.Context, s *testing.State, subcmd string, flags, patterns []string) (*exec.Cmd, error)
NewCommand creates a command to run tast. subcmd contains the subcommand to use, e.g. "list" or "run". flags contains subcommand-specific flags. patterns contains a list of patterns matching tests.
Types ¶
type TestError ¶
type TestError struct {
Reason string `json:"reason"`
}
TestError is a subset of testing.EntityError.
type TestResult ¶
type TestResult struct { Name string `json:"name"` Errors []TestError `json:"errors"` SkipReason string `json:"skipReason"` }
TestResult is subset of run.EntityResult.
func ParseResultsJSON ¶
func ParseResultsJSON(dir string) ([]TestResult, error)
ParseResultsJSON parses results.json inside dir.