You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docs suggest that one can run a test suite through the PlenaryBustedDirectory command. This seems to take two arguments - the second one being a Lua table of options. I learned that you can only really provide one entry in this table, as doing anything else seem to induce ambiguous syntax and the argument gets translated to something completely else.
The docs suggest that one can run a test suite through the
PlenaryBustedDirectory
command. This seems to take two arguments - the second one being a Lua table of options. I learned that you can only really provide one entry in this table, as doing anything else seem to induce ambiguous syntax and the argument gets translated to something completely else.For example, the following:
$ nvim --headless -c "PlenaryBustedDirectory tests/plenary/ {minimal_init = '/foobar', sequential=true}"
will make the test harness receive it as:
I've not researched this much more than this, but it seems like the comma might be the culprit.
To resolve this, I bypassed the command interface and call the Lua API directly instead, like so:
$ nvim --headless -c "lua require('plenary.test_harness').test_directory('.', {minimal_init='/foobar',sequential=true})"
I wonder if the docs should be updated to reflect this, and perhaps even deprecate this particular command interface?
The text was updated successfully, but these errors were encountered: