Skip to main content

testkube_run_test

testkube run test

Starts new test

Synopsis

Starts new test based on Test Custom Resource name, returns results to console

testkube run test <testName> [flags]

Options

      --args stringArray                           executor binary additional arguments
--artifact-dir stringArray artifact dirs for container executor
--artifact-storage-class-name string artifact storage class name for container executor
--artifact-volume-mount-path string artifact volume mount path for container executor
--concurrency int concurrency level for multiple test execution (default 10)
--copy-files stringArray file path mappings from host to pod of form source:destination
-d, --download-artifacts downlaod artifacts automatically
--download-dir string download dir (default "artifacts")
--env stringToString envs in a form of name1=val1 passed to executor (default [])
--execution-label stringToString execution-label key value pair: --execution-label key1=value1 (default [])
--git-branch string if uri is git repository we can set additional branch parameter
--git-commit string if uri is git repository we can use commit id (sha) parameter
--git-path string if repository is big we need to define additional path to directory/file to checkout partially
--git-working-dir string if repository contains multiple directories with tests (like monorepo) and one starting directory we can set working directory parameter
-h, --help help for test
--http-proxy string http proxy for executor containers
--https-proxy string https proxy for executor containers
--image string execution variable passed to executor
--iterations int how many times to run the test (default 1)
--job-template string job template file path for extensions to job template
-l, --label strings label key value pair: --label key1=value1
-n, --name string execution name, if empty will be autogenerated
--negative-test negative test, if enabled, makes failure an expected and correct test result. If the test fails the result will be set to success, and vice versa
--prerun-script string path to script to be run before test execution
--scraper-template string scraper template file path for extensions to scraper template
--secret stringToString secret envs in a form of secret_key1=secret_name1 passed to executor (default [])
-s, --secret-variable stringToString execution secret variable passed to executor (default [])
--secret-variable-reference stringToString secret variable references in a form name1=secret_name1=secret_key1 (default [])
-v, --variable stringToString execution variable passed to executor (default [])
--variables-file string variables file path, e.g. postman env file - will be passed to executor if supported
-f, --watch watch for changes after start

Options inherited from parent commands

  -a, --api-uri string     api uri, default value read from config if set (default "http://localhost:8088")
-c, --client string client used for connecting to Testkube API one of proxy|direct (default "proxy")
--namespace string Kubernetes namespace, default value read from config if set (default "testkube")
--oauth-enabled enable oauth (default true)
--verbose show additional debug messages

SEE ALSO