env

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2018 License: GPL-3.0, GPL-3.0 Imports: 10 Imported by: 35

Documentation

Index

Constants

View Source
const (
	// SpecsDir holds the location of spec files
	SpecsDir = "gauge_specs_dir"
	// GaugeReportsDir holds the location of reports
	GaugeReportsDir = "gauge_reports_dir"
	// LogsDirectory holds the location of log files
	LogsDirectory = "logs_directory"
	// OverwriteReports = false will create a new directory for reports
	// for every run.
	OverwriteReports = "overwrite_reports"
	// ScreenshotOnFailure indicates if failure should invoke screenshot
	ScreenshotOnFailure = "screenshot_on_failure"

	// CsvDelimiter holds delimiter used to parse csv files
	CsvDelimiter = "csv_delimiter"
)

Variables

View Source
var AllowMultiLineStep = func() bool {
	return convertToBool(allowMultilineStep, false)
}

AllowMultiLineStep - feature toggle for newline in step text

View Source
var AllowScenarioDatatable = func() bool {
	return convertToBool(allowScenarioDatatable, false)
}

AllowScenarioDatatable -feature toggle for datatables in scenario

View Source
var EnableMultiThreadedExecution = func() bool {
	return convertToBool(enableMultithreading, false)
}

EnableMultiThreadedExecution determines if threads should be used instead of process for each parallel stream

View Source
var SaveExecutionResult = func() bool {
	return convertToBool(saveExecutionResult, false)
}

SaveExecutionResult determines if last run result should be saved

View Source
var UseTestGA = func() bool {
	return strings.ToLower(os.Getenv(useTestGA)) == "true"
}

UseTestGA checks if test google analytics account needs to be used

Functions

func CurrentEnv added in v0.1.4

func CurrentEnv() string

CurrentEnv returns the value of currentEnv

func LoadEnv

func LoadEnv(envName string) error

LoadEnv first generates the map of the env vars that needs to be set. It starts by populating the map with the env passed by the user in --env flag. It then adds the default values of the env vars which are required by Gauge, but are not present in the map.

Finally, all the env vars present in the map are actually set in the shell.

Types

This section is empty.

Jump to

Keyboard shortcuts

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