Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.

Running empty test files #219

Open
kgadek opened this issue May 16, 2017 · 1 comment
Open

Running empty test files #219

kgadek opened this issue May 16, 2017 · 1 comment

Comments

@kgadek
Copy link

kgadek commented May 16, 2017

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
Copy link

JoeReid commented Aug 10, 2017

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

yarikoptic pushed a commit to neurodebian/bats that referenced this issue Aug 6, 2019
docs: add document attributes to manpages
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants