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 ¶
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 Config string 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
Click to show internal directories.
Click to hide internal directories.