Skip to content

nvim-neotest/neotest-plenary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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, with each instance of the adapter having different configurations.

require("neotest").setup({
  projects = {
    ["~/Dev/my-plugin"] = require("neotest-plenary")({
      min_init = "./path/to/test_init.lua",
    }),
  },
  adapters = {
    require("neotest-plenary"), -- Default globbing for all other projects
  },
})

About

No description or website provided.

Topics

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENCE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published