Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Defaults

Locations are lazily inited to reflect bootstrapped testsLocation.

Hierarchy

  • Defaults

Implements

Index

Constructors

  • new Defaults(testsLocation?: string): Defaults

Properties

bail: boolean = false

Bail on first failure (false).

batchDelay: number = 0

(For use with rowwise values). Delay in ms between row batches.

batchRows: number = 1

(For use with rowwise values). Number of rows to run per batch.

caseFiles: string = '**/*.ply.ts'

Case files glob pattern, relative to testsLocation ('*/.ply.ts').

flowFiles: string = '**/*.flow'

Flow files glob pattern, relative to testsLocation ('*/.flow').

genExcludeResponseHeaders: string[] = ...

Response headers to exclude when generating expected results.

ignore: string = '**/{node_modules,bin,dist,out}/**'

File pattern to ignore, relative to testsLocation ('/{node_modules,bin,dist,out}/').

maxLoops: number = 10

(When flows have loopback links). Max instance count per step (10). Overridable in flow design.

parallel: boolean = false

Run suites in parallel.

prettyIndent: number = 2

Prettification indent for yaml and response body (2).

quiet: boolean = false

The opposite of 'verbose' (false).

reporter: any = ...

Reporter output format. Built-in formats: json, csv, xlsx. See https://github.com/ply-ct/ply-viz for more options.

requestFiles: string = '**/*.{ply,ply.yaml,ply.yml}'

Request files glob pattern, relative to testsLocation ('*/.{ply.yaml,ply.yml}').

responseBodySortedKeys: boolean = true

Predictable ordering of response body JSON property keys -- needed for verification (true).

resultFollowsRelativePath: boolean = true

Result files live under a similar subpath as request/case files (true). (eg: Expected result relative to 'expectedLocation' is the same as request file relative to 'testsLocation').

skip: string = '**/*.ply'

File pattern for requests/cases/flows that shouldn't be directly executed, relative to testsLocation.

testsLocation: string = '.'

Tests base directory ('.').

valuesFiles: never[] = []

Files containing values JSON (or CSV or XLSX).

verbose: boolean = false

Verbose output (false). Takes precedence over 'quiet' if both are true.

Accessors

  • get actualLocation(): string
  • get expectedLocation(): string
  • get logLocation(): string

Generated using TypeDoc