jorgebucaran / fishtape

100% pure-Fish test runner
MIT License
347 stars 20 forks source link

Missing end to balance this function definition #41

Closed edouard-lopez closed 5 years ago

edouard-lopez commented 5 years ago

When running fishtape@1.0.0 against pure test suite I got the following error:

❯ fishtape tests/debug.test.fish
- (line 3): Missing end to balance this function definition
function __fishtape@total;      if test $__fishtape_count -eq 0;        fishtape_cleanup;        exit 1;    end;;    printf "\n1..%s\n" $__fishtape_count;    printf "# tests %s\n" $__fishtape_count;    printf "# pass  %s\n" (math $__fishtape_count - $__fishtape_fails);;    if test $__fishtape_fails -gt 0;        printf "# fail  %s\n" $__fishtape_fails;        fishtape_cleanup;        exit 1;    end;;    fishtape_cleanup;    printf "\n# ok\n"
^                                                                                                                                                                                                                                      from sourcing file -
called on standard input
source: Error while reading file “-”     

This happen whatever test file I try to run.

jorgebucaran commented 5 years ago

@edouard-lopez You didn't specify what fish version you were using, but perhaps there's something in debug.test.fish tripping the primitive syntax preprocessor. If you show me what's in that file I can try to help, but there's not much you're giving me to work with.


Closing as I have no plans of supporting 1.0.0 anymore. Please upgrade to Fishtape 2 as soon as you can.