Test Machinery
0.317.0

Command: test

  • short_text /test [sub-command] [--flags]
  • info Runs a testrun that is either specified by command line flags or in the default values. The specified path is rendered as testrun and the current repository is injected as a default location.
  • perm_identity
    team
    Everyone that is in the default team is allowed to use the command

Usage

      --dry-run              Print the rendered testrun
      --set stringArray      sets additional helm values
      --template             run go templating on the configured file before execution
      --testrunPath string   path to the testrun file that should be executed

Config

test:
  # Configures the default to run when specifying no additional parameters: /test .
  default: 
    testrunPath: path/to/testrun
    template: <bool> # default to false; Will run go-template

  # Configures an additional subcommand that execute the defined test when running /test <subcommand>.
  # For example the first configured test is executed when commenting a PR with "/test my-subcommand".
  tests:
  # simple testrun execution
  - subCommand: my-subcommand
    testrunPath: path/to/testrun # runs the specified testrun
	template: <bool> # default to false; Will run go-template

  # simple templated testrun
  # configure "template=true" to template the configured testrun with gotemplate
  # and the values configured by "--set". The helm syntax is used to configure parameters.
  - subCommand: templated-test
    testrunPath: path/to/testrun # runs the specified testrun
	template: <bool> # defaults to false;