puppeteer

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Project

type Project struct {
	config.TypeDef `yaml:",inline"`
	ShowConsoleLog bool
	DryRun         bool               `yaml:"-" json:"-"`
	Sauce          config.SauceConfig `yaml:"sauce,omitempty" json:"sauce"`
	Suites         []Suite            `yaml:"suites,omitempty" json:"suites"`
	BeforeExec     []string           `yaml:"beforeExec,omitempty" json:"beforeExec"`
	Docker         config.Docker      `yaml:"docker,omitempty" json:"docker"`
	Puppeteer      Puppeteer          `yaml:"puppeteer,omitempty" json:"puppeteer"`
	Npm            config.Npm         `yaml:"npm,omitempty" json:"npm"`
	RootDir        string             `yaml:"rootDir,omitempty" json:"rootDir"`
}

Project represents the puppeteer project configuration.

func FromFile

func FromFile(cfgPath string) (Project, error)

FromFile creates a new puppeteer project based on the filepath.

type Puppeteer

type Puppeteer struct {
	// Version represents the puppeteer framework version.
	Version string `yaml:"version,omitempty" json:"version"`
}

Puppeteer represents the configuration for puppeteer.

type Suite

type Suite struct {
	Name      string            `yaml:"name,omitempty" json:"name"`
	Browser   string            `yaml:"browser,omitempty" json:"browser"`
	TestMatch []string          `yaml:"testMatch,omitempty" json:"testMatch"`
	Env       map[string]string `yaml:"env,omitempty" json:"env"`
}

Suite represents the puppeteer test suite configuration.

Jump to

Keyboard shortcuts

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