tastrun

package
v0.0.0-...-683b059 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 10 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL