Immediately throw an error, aborting the current iteration.
fail() does not abort the test, nor does it make the test exit with non-0 status. If you are looking to fail the test by halting the execution, use test.abort() instead
|err (optional)||string||Error message that gets printed to stderr.|
Aborting the current script iteration if a check fails: