Skip to content

Commit

Permalink
Abort tests if syntax check fails (#60)
Browse files Browse the repository at this point in the history
Not a full solution to #60, but it's a good start.
  • Loading branch information
jorgebucaran committed Jan 23, 2021
1 parent 21ccd8c commit 33471be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions functions/fishtape.fish
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ function fishtape --description "Test scripts, functions, and plugins in Fish"
if test ! -f $file
echo "fishtape: Invalid file or file not found: \"$file\"" >&2
return 1
else if ! fish --no-execute $file
echo "fishtape: Syntax errors found in file: \"$file\"" >&2
return 1
end
end

Expand Down

0 comments on commit 33471be

Please sign in to comment.