folke / neotest-plenary

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

neotest-plenary

Neotest adapter for plenary.nvim busted tests.

image

This is WIP as use cases are discovered. Currently any minimal_init.lua/vim will be used when running tests. If you have extra requirements for running tests, please raise an issue to discuss incorporating it into this adapter.

Requires nvim-treesitter and the parser for lua.

require("neotest").setup({
  adapters = {
    require("neotest-plenary"),
  },
})

Minimal init.lua

By default, neotest-plenary will glob for:

  • */testrc*
  • */minimal_init*
  • test*/init.vim

Or, you can specify the exact file to use via:

require("neotest").setup({
  adapters = {
    require("neotest-plenary").setup({
      min_init = "./path/to/test_init.lua",
    }),
  },
})

About

License:MIT License


Languages

Language:Lua 97.5%Language:Shell 2.5%