On Mon, May 8, 2017 at 2:09 PM, Mike Meyer <m...@mired.org> wrote:
>
> Just to make sure I have it right, there's no way to test them, as one
> hasn't been built because they can't all be tested on one system? Seems
> like the test framework ought to have a way to say "Skip this test if the
> command doesn't exist", but that's beyond the scope of my question.
>

There are some very low level completion logic tests. See
*src/fish_tests.cpp*, specifically, the `test_expand()` and
`test_complete()` (plus some others). What no one has bothered to do is
create a high level framework for testing completion scripts. Keep in mind
that unit tests need to be hermetic. So it isn't enough to only test the
completions for a command if the command is available. You also need to be
able to control what the command emits since it can't depend on the state
of the system the test is running on. Patches are welcome :-)

Without the -a, things work fine. But if I type "zfs mount -a TAB", it
> completes against the local file system. I had expected the -f to stop
> that, but it doesn't seem to work. Can this be done?
>

That is this issue: https://github.com/fish-shell/fish-shell/issues/112.
Which we think we have a fix for but haven't merged yet because we didn't
want to include it in the 2.6.0 release we're just about to make due to
insufficient testing.

-- 
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to