#!/usr/bin/env bash cd "${0%/*}" || exit 1 . ../run-tests failFunction() { false } arguments=(--fail-on-function) returnCode=1 template="Fail on function? {{failFunction}}" expected() { cat <