testutils

package
v0.0.0-...-a56eff2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTmpDir

func GetTmpDir(t *testing.T) string

On macOS systems, the `TempDir` func in the `testing` package will potentially return the symlink to the dir, rather than the actual path (`/private/folders/...` vs `/var/private/folders/...`).

func RunAppCommand

func RunAppCommand(cmdString string, wd string) (stdout string, stderr string, exitCode int)

Wraps RunCommand for App calls, locating the correct binary for the executing OS

func RunCommand

func RunCommand(cmdString string, wd string) (stdout string, stderr string, exitCode int)

Run Command takes a command to execute and the directory in which to execute the command. if wd is and empty string it will default to the current working directory

func SetAppName

func SetAppName(appName string)

func SkipAcceptanceTest

func SkipAcceptanceTest(t *testing.T)

Types

This section is empty.

Jump to

Keyboard shortcuts

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