app

package
v1.3.1-0...-b027968 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//AppName defines the app name
	AppName = "Commander"
	//CommanderFile holds the default config file which is loaded
	CommanderFile = "commander.yaml"
)

Variables

This section is empty.

Functions

func AddCommand

func AddCommand(command string, existed []byte) ([]byte, error)

AddCommand executes the add command command is the command which should be added to the test suite existed holds the existing yaml content

func TestCommand

func TestCommand(testPath string, ctx TestCommandContext) error

TestCommand executes the test argument testPath is the path to the test suite config, it can be a dir or file ctx holds the command flags. If directory scanning is enabled with --dir, test filtering is not supported

Types

type TestCommandContext

type TestCommandContext struct {
	Verbose    bool
	NoColor    bool
	Dir        bool
	Workdir    string
	Concurrent int
	Filters    []string
}

TestCommandContext holds all flags for the add command

func NewTestContextFromCli

func NewTestContextFromCli(c *cli.Context) TestCommandContext

NewTestContextFromCli is a constructor which creates the context

Jump to

Keyboard shortcuts

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