Skip to content

run

Terminal window
jk run -h
Execute tests
Usage: jk run [OPTIONS] [path]...
Arguments:
[path]... The path(s) to search for test files
By default, the current path is used
Options:
-r Recursively search for test files
-t, --tag <tag> Select tests to run based on tags
By default, tests must match all given tags to be selected
--tags-or Toggle tag matching logic to select tests matching any of the given tags
--junit <junit_file> Output results in junit format to specified file
-h, --help Print help

Description

Executes all test definitions in the current directory.

You can also specify one or more test files and/or paths to run, enable recursive searching, and filter tests based on tags via options.

Arguments

ArgumentDefaultDescription
pathThe current path(Optional) The path(s) at which to search for test files. These can be single test files, or directories containing one or more files. By default, the current path is used.

Options

OptionValueDescription
‑h
‑‑help
Print command details, arguments, and options to the console.
‑‑junitAn output filename/pathEnable output of test results in JUnit format to a file at the specified location.
‑rEnable recursive search for test files.
‑t
‑‑tag
A single tag valueSpecify one or more tags to be matched when searching for test files. By default, test files much match all provided tags to be selected. Each tag should be provided as a separate -t option (e.g. -t tag1 -t tag2).
‑‑tags‑orToggle tag matching behavior to select tests matching any of the provided tags (as opposed to all).

Examples

Running all tests in the current directory:

Running tests selected via tags: