integration

package
v0.0.2-rc.11 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2018 License: MIT Imports: 9 Imported by: 0

README

Step CLI Integration Tests

How To Run

Run all the integration tests:

make integration

Run only integration tests that match a regex:

go test -tags=integration ./integration/... -run <REGEX>

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CombinedOutput

func CombinedOutput(command string) ([]byte, error)

CombinedOutput executes a shell command and returns combined output from stdout and stderr.

func Command

func Command(command string) *exec.Cmd

Command executes a shell command.

func ExitError

func ExitError(err error) (*exec.ExitError, bool)

ExitError converts an error to an exec.ExitError.

func Output

func Output(command string) ([]byte, error)

Output executes a shell command and returns output from stdout.

func WithStdin

func WithStdin(command string, r io.Reader) ([]byte, error)

WithStdin executes a shell command with a provided reader used for stdin.

Types

type CLICommand

type CLICommand struct {
	// contains filtered or unexported fields
}

CLICommand repreents a command-line command to execute.

func NewCLICommand

func NewCLICommand() CLICommand

NewCLICommand generates a new CLICommand.

type CLIOutput

type CLIOutput struct {
	// contains filtered or unexported fields
}

CLIOutput represents the output from executing a CLICommand.

Jump to

Keyboard shortcuts

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