zunit-zsh / zunit

A powerful testing framework for ZSH projects
https://zunit.xyz
MIT License
208 stars 23 forks source link

Files in tests directory should be ignored when they lack a .zunit extension #114

Open NReilingh opened 4 years ago

NReilingh commented 4 years ago

Currently, every file in the tests directory is treated as a zunit test file, and an error is thrown if the file does not start with the zunit shebang:

https://github.com/zunit-zsh/zunit/blob/804863857116a16811e52d8b0e97996f0b409734/src/commands/run.zsh#L396-L425

Is there a reason for not filtering out files that lack the .zunit extension? I have experienced a number of situations where zunit fails due to trying to read a macOS .DS_Store or vim .swp file as a test file.