plenary.nvim
plenary.nvim copied to clipboard
feat(busted): option to filter tests to run by pattern [wip]
This is a step towards being able to run individual tests. See #343. I'm just starting with lua and vim plugin development as well so, be gentle 😆.
Todo
- [ ] Document the changes.
- [ ] Fix vim command (not sure how to parse the options correctly or serialize a lua table to be passed down, please see
TODO
s in the code).
Overall Looks good. Thanks :)
Overall Looks good. Thanks :)
Thanks @Conni2461!
Could you perhaps help me out with some guidance on how to fix the PlenaryBustedDirectory
command? I tried modifying the Makefile
when testing this to include the filter
option in the second argument, but that breaks here: https://github.com/nvim-lua/plenary.nvim/blob/9f033d1469312c51521cf27c64925904bd6400b7/lua/plenary/test_harness.lua#L33
It seems we're doing some hacking there to parse the second argument as a lua table manually? But adding a second field to the table causes an error. I'm guessing it doesn't like the comma in {minimal_init = 'tests/minimal_init.lua', filter = 'test'}
?
EDIT: found this #284