checkAll (Function)

Signature: checkAll(label: string, conditions: List<bool>) -> Unit

Description: Runs every boolean in a list literal as an independent labeled soft assertion. All conditions run even when an earlier one fails.

Parameters

  • label (string): A short label shared by the group
  • conditions (List): A non-empty list literal of boolean conditions

Returns: Unit

Example

checkAll("order state", [total == 42, itemCount == 3, paid])
checkAll ("order state", [total == 42, itemCount == 3, paid])