bats
bats copied to clipboard
Running empty test files
Sometimes, it's useful to create dummy .bats
files that do not contain any test cases. However, the bats-exec-suite
fails.
The reason: let count+="$(bats-exec-test -c "$filename")"
evaluates to let count+=0
, which fails under set -e
.
I have hit this issue too, causing a whole bunch of not-immediately-obvious issue with various testing pipelines. It would be great to get this fixed