DrSammyD / neotest-vitest

Vitest adapter for Neovim Neotest plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

neotest-vitest

This plugin provides a Vitest adapter for the Neotest framework.

Credits to neotest-jest

Known issues

  • Wrong error location on collecting results - (this is related to Vitest reporting issue) (solved by Vitest 0.23.0)
  • test.each is currently not well supported (WIP)

How to install it

use({
  'rcarriga/neotest',
  requires = {
    ...,
    'marilari88/neotest-vitest',
  }
  config = function()
    require('neotest').setup({
      ...,
      adapters = {
        require('neotest-vitest') 
        }
    })
  end
})

Usage

usage preview

See neotest's documentation for more information on how to run tests.

🎁 Contributing

Please raise a PR if you are interested in adding new functionality or fixing any bugs. When submitting a bug, please include an example spec that can be tested.

To trigger the tests for the adapter, run:

./scripts/test

Bug Reports

Please file any bug reports and I might take a look if time permits otherwise please submit a PR, this plugin is intended to be by the community for the community.

About

Vitest adapter for Neovim Neotest plugin


Languages

Language:Lua 92.6%Language:TypeScript 4.5%Language:Shell 2.5%Language:Vim Script 0.4%