helpers

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2018 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFeatureContext

func AddFeatureContext(s *godog.Suite)

AddFeatureContext defines the festure context for features/add/**/*.feature

func CheckoutApp

func CheckoutApp(appDir, appName string) error

CheckoutApp copies the example app into the given appDir

func CleanFeatureContext

func CleanFeatureContext(s *godog.Suite)

CleanFeatureContext defines the festure context for features/clean.feature nolint gocyclo

func CopyDir

func CopyDir(src string, dst string) (err error)

CopyDir recursively copies a directory tree, attempting to preserve permissions. Source directory must exist, destination directory must *not* exist. Symlinks are ignored and skipped. nolint gocyclo

func CopyFile

func CopyFile(src, dst string) (err error)

CopyFile copies the contents of the file named src to the file named by dst. The file will be created if it does not already exist. If the destination file exists, all it's contents will be replaced by the contents of the source file. The file mode will be copied from the source and the copied data is synced/flushed to stable storage.

func GetTestApplicationDir

func GetTestApplicationDir(appName string) string

GetTestApplicationDir returns the path to the test application with the given name

func JoinStringSlices added in v0.35.0

func JoinStringSlices(slices ...[]string) []string

JoinStringSlices joins the given slices

func RunFeatureContext

func RunFeatureContext(s *godog.Suite)

RunFeatureContext defines the festure context for features/run nolint gocyclo

func SharedFeatureContext

func SharedFeatureContext(s *godog.Suite)

SharedFeatureContext defines the festure context shared between the sub commands nolint: gocyclo

func TemplateFeatureContext

func TemplateFeatureContext(s *godog.Suite)

TemplateFeatureContext defines the festure context for features/template/**/*.feature nolint gocyclo

func TestFeatureContext

func TestFeatureContext(s *godog.Suite)

TestFeatureContext defines the feature context for features/test

func TutorialFeatureContext

func TutorialFeatureContext(s *godog.Suite)

TutorialFeatureContext defines the festure context for the tutorial nolint gocyclo

Types

This section is empty.

Jump to

Keyboard shortcuts

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