Lupa API Reference / @pawel-up/lupa/runner / CLIArgs
Type Alias: CLIArgs
CLIArgs =
object&Record<string,string|string[] |boolean|number>
Defined in: src/runner/types.ts:10
Parsed command-line arguments
Type Declaration
_?
optional_?:string[]
Unparsed arguments
bail?
optionalbail?:boolean
Stop executing further tests as soon as a single test failure occurs. When enabled, subsequent suites, groups, and tests will be skipped.
bailLayer?
optionalbailLayer?:"test"|"group"|"suite"
The granularity or layer at which the runner bails on failure (e.g., 'test', 'group', 'suite'). Allows control over whether bailing skips only the remaining tests in the current group/suite, or halts the entire runner process.
browser?
optionalbrowser?:string|string[]
Browser(s) to run tests in
concurrency?
optionalconcurrency?:number|"auto"
Concurrency level
coverage?
optionalcoverage?:boolean
Whether to enable code coverage
coverageDir?
optionalcoverageDir?:string
Directory where coverage reports are written
coverageReporters?
optionalcoverageReporters?:string|string[]
List of coverage reporters to generate
failed?
optionalfailed?:boolean
Whether to run only failed tests
files?
optionalfiles?:string|string[]
Test files to filter by
groups?
optionalgroups?:string|string[]
Test groups to filter by
help?
optionalhelp?:boolean
Whether to show help
list?
optionallist?:boolean
Whether to output the list of suites and tests
matchAll?
optionalmatchAll?:boolean
Whether to match all tests
parallel?
optionalparallel?:boolean
Whether to enable parallel execution
reporters?
optionalreporters?:string|string[]
Reporters to use
retries?
optionalretries?:string
Number of retries
suites?
optionalsuites?:string|string[]
Test suites to filter by
tags?
optionaltags?:string|string[]
Test tags to filter by
tests?
optionaltests?:string|string[]
Test names to filter by
timeout?
optionaltimeout?:string
Test timeout
verbose?
optionalverbose?:boolean
Whether to enable verbose mode
viteConfig?
optionalviteConfig?:string
Path to Vite configuration file