integration

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2019 License: Apache-2.0 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 CleanOutput added in v0.8.4

func CleanOutput(str string) string

CleanOutput returns the output from the cursor character.

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