Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip non-.zunit files when recursing on a test directory #115

Open
wants to merge 1 commit into
base: next
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/commands/run.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,11 @@ function _zunit_parse_argument() {
if [[ -d $argument ]]; then
# Loop through each of the files in the directory
for file in $(find $argument -mindepth 1 -maxdepth 1); do
# Skip further processing for files without a .zunit extension
if [[ -f $file && $file != *.zunit ]]; then
continue
fi

# Run it through the parser again
_zunit_parse_argument $file
done
Expand Down