Split Tests with YAML

YAML parameters for Split tests

NameTypeDescription
action
Required
StringThe ID of the action.
type
Required
StringThe type of the action. Should be set to SPLIT_TESTS.
source_path __
Required
StringThe path in the filesystem containing files with tests.
groups_count __
Required
IntegerThe amount of groups to split. Can't be lower than 2.
files_orderStringDefines how test files should be split. Can be one of BY_FILE_SIZE or ALPHABETICALLY.
trigger_timeStringSpecifies when the action should be executed. Can be one of ON_EVERY_EXECUTION, ON_FAILURE or ON_BACK_TO_SUCCESS.
trigger_conditionStringDefines when the build action should be run. Can be one of ALWAYS, ON_CHANGE, ON_CHANGE_AT_PATH, VAR_IS, VAR_IS_NOT or VAR_CONTAINS.
trigger_condition_pathsString[]Required when trigger_condition is set to ON_CHANGE_AT_PATH.
trigger_variable_keyStringRequired when trigger_condition is set to VAR_IS, VAR_IS_NOT or VAR_CONTAINS. Defines the name of the desired variable.
trigger_variable_valueStringRequired when trigger_condition is set to VAR_IS, VAR_IS_NOT or VAR_CONTAINS. Defines the value of the desired variable which will be compared with its current value.
disabledBooleanWhen set to true the action is disabled. By default it is set to false.

YAML example for Split tests

actions:
- action: "Split Tests"
type: "SPLIT_TESTS"
source_path: "/tests/"
groups_count: 4
files_order: "ALPHABETICALLY"