Veve

CLI

The CLI interface of veve

The Veve CLI provides a variety of command-line options to customize and control your testing environment. Below is a comprehensive list of available options:

Usage Examples

Run tests with basic configuration:

Terminal
veve --config=veve.config.js

Watch mode with specific test files:

Terminal
veve -w -f=auth.test.ts -f=api.test.ts

Run tests with custom timeout and environment variables:

Terminal
veve -t=5000 --envs=.env.test --envs=.env.local

Pattern matching with exclusions:

Terminal
veve -p="**/*.test.ts" -p="**/*.spec.js" -e="node_modules/**" -e="dist/**"

Command Reference Table

OptionShort FlagTypeMultiple ValuesRequires ValueDescription
--help-h-NoNoDisplay this help message with detailed information about all available commands
--version-v-NoNoDisplay current version
--config-cstringNoYesSpecify the path to a file configuration containing test settings and options
--output-ostringNoYesDefines the file path for reporters to save their outputs
--require-rstringYesYesModule names to require globally inside the testing files
--watch-w-NoNoWatch testing files (recommended)
--timeout-tnumberNoYesSet the maximum execution time (in milliseconds) for each individual test file
--envs-envpath[]YesYesProvide path to one or more .env files for loading environment variables during testing
--pattern-pregex[]YesYesSpecify a glob pattern to match test files
--exclude-eregex[]YesYesSpecify patterns or paths to exclude from test execution
--file-fpath[]YesYesExplicitly list one or more test files to run

Basic Options

Help

  • Flag: --help, -h
  • Description: Display this help message with detailed information about all available commands.
  • Requires Value: No

Version

  • Flag: --version, -v
  • Description: Display current version
  • Requires Value: No

Watch Mode

  • Flag: --watch, -w
  • Description: Watch testing files (recommended)
  • Requires Value: No

Configuration Options

Config File

  • Flag: --config, -c
  • Description: Specify the path to a file configuration containing test settings and options.
  • Type: string
  • Requires Value: Yes

Output Path

  • Flag: --output, -o
  • Description: Defines the file path for reporters to save their outputs.
  • Type: string
  • Requires Value: Yes

Global Modules

  • Flag: --require, -r
  • Description: Module names to require globally inside the testing files!
  • Type: string
  • Multiple Values: Yes
  • Requires Value: Yes

Test Execution Options

Timeout

  • Flag: --timeout, -t
  • Description: Set the maximum execution time (in milliseconds) for each individual test file.
  • Type: number
  • Requires Value: Yes

Environment Variables

  • Flag: --envs, -env
  • Description: Provide path to one or more .env files for loading environment variables during testing.
  • Type: path[]
  • Multiple Values: Yes
  • Requires Value: Yes

File Selection Options

Pattern Matching

  • Flag: --pattern, -p
  • Description: Specify a glob pattern to match test files
  • Type: regex[]
  • Multiple Values: Yes
  • Requires Value: Yes
  • Example: -p="**/*.test.ts" -p="**/*.spec.js"

Exclude Patterns

  • Flag: --exclude, -e
  • Description: Specify patterns or paths to exclude from test execution
  • Type: regex[]
  • Multiple Values: Yes
  • Requires Value: Yes
  • Example: -e="node_modules/**"

Specific Files

  • Flag: --file, -f
  • Description: Explicitly list one or more test files to run
  • Type: path[]
  • Multiple Values: Yes
  • Requires Value: Yes
  • Example: -f=test.ts -f=test.js

On this page