Skip to main content
Version: 9.0.0

Run Tests

Run tests using the following command:

npx ketm run [OPTIONS...]

Options include:

  • -c, --config <config>: Path to the config file.
  • -d, --dev <dev>: Enable dev Mode (boolean).
  • -e, --extra <extra...>: Extra Params (default: []).
  • --filter-feature <filter-feature...>: Run only specified features.
  • --filter-feature-exclude-tag <filter-feature-exclude-tag...>: Exclude running features with specified tags.
  • --filter-feature-tag <filter-feature-tag...>: Run only features with specified tags.
  • --filter-glob <glob>: Run only specified globs.
  • --filter-scenario <filter-scenario...>: Run only specified scenarios.
  • --filter-scenario-exclude-tag <filter-scenario-exclude-tag...>: Exclude running scenarios with specified tags.
  • --filter-scenario-tag <filter-scenario-tag...>: Run only scenarios with specified tags.
  • --filter-step <filter-step...>: Run only specified steps.
  • --filter-step-exclude-tag <filter-step-exclude-tag...>: Exclude running steps with specified tags.
  • --filter-step-tag <filter-step-tag...>: Run only steps with specified tags.
  • --headless <headless>: Headless mode.
  • --inspect <inspect>: Inspect.
  • --inspect-brk <inspect>: Inspect.
  • -l, --live-mode <liveMode>: Live Mode.
  • --override <override>: Override Config Values.
  • --parallel-adapters <parallel>: Number of concurrent Adapters runs.
  • --parallel-clients <parallel>: Number of concurrent clients runs.
  • --parallel-features <parallel>: Number of concurrent feature runs.
  • -r, --reporters <reporters>: reporters.
  • -s, --source <specs>: Source files.
  • --suites <suites>: Run only specified suites (default: []).

These options allow you to customize your test runs according to various criteria, such as features, scenarios, steps, and more.

Note: Options passed via the command line override those defined in the configuration file. For example, if you specify the source in the command prompt, it will override the source specified in the configuration file.

To use the npx ketm run command with additional options, follow this format:

npx ketm run --config test-maker.ci.ts --source "['./src/specs/file-2-spec.ts']"

npx ketm run --help

When exploring the Test Maker CLI, it's crucial to understand the available options when running tests. The npx ketm run --help command provides detailed information about the various options at your disposal.

npx ketm run --help

This command provides information about all available options, including those for filtering features, scenarios, steps, setting up headless mode, inspecting, and specifying suites.

npx ketm run help

Example:

npm run test:ci -- --source "['./src/specs/**/**/*-spec.ts']" --parallel.features=16 --filter-step "We Visit google search page"