Open kgadek opened 7 years ago
Sometimes, it's useful to create dummy .bats files that do not contain any test cases. However, the bats-exec-suite fails.
.bats
bats-exec-suite
The reason: let count+="$(bats-exec-test -c "$filename")" evaluates to let count+=0, which fails under set -e.
let count+="$(bats-exec-test -c "$filename")"
let count+=0
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
Sometimes, it's useful to create dummy
.bats
files that do not contain any test cases. However, thebats-exec-suite
fails.The reason:
let count+="$(bats-exec-test -c "$filename")"
evaluates tolet count+=0
, which fails underset -e
.