bats icon indicating copy to clipboard operation
bats copied to clipboard

Running empty test files

Open kgadek opened this issue 7 years ago • 1 comments

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.

kgadek avatar May 16 '17 13:05 kgadek

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

JoeReid avatar Aug 10 '17 10:08 JoeReid