sstephenson / bats

Bash Automated Testing System
MIT License
7.12k stars 518 forks source link

Running empty test files #219

Open kgadek opened 7 years ago

kgadek commented 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.

The reason: let count+="$(bats-exec-test -c "$filename")" evaluates to let count+=0, which fails under set -e.

JoeReid commented 7 years ago

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