Global

Methods


fxVideo(func)

Fixture to capture tests video.

Parameters:
Name Type Description
func function

Test funciton.

Source:

fxVideoFunc()

Callable fixture to capture tests video.

Properties:
Name Type Argument Description
dir string <optional>

Video file folder.

name string <optional>

Video file name.

Source:

pluginHelp(yargs, d)

Video plugin help.

Parameters:
Name Type Description
yargs yargs

yargs instance in order to expand its options.

d function

Function to manage option description: join, colorize, etc.

Source:
Returns:
  • Expanded yargs instance.
Type
yargs

scope(name [, fixtures] [, opts], func)

Extends scope function by addition options to manage video recording. Cause it overrides scope, all functions, which use global scope inside, can pass its options as well.

Parameters:
Name Type Argument Description
name string

Scope name.

fixtures Array.<function()> <optional>

List of fixtures.

opts object <optional>

Options, which extends basic options.

Properties
Name Type Argument Description
videoName string <optional>

Name of video file.

videoDir string <optional>

Folder to save video file.

videoSave boolean <optional>

Flag to save video even if all is passed inside.

video boolean <optional>

Flag to capture video with default options. Used if above options are missed.

func function

Callback with tests or chunks.

Source: