Find Related products on Amazon

Shop on Amazon

Pytest for Neovim

Published on: 2025-05-11 22:08:59

About the project Testing integrated in neovim with pytest. Include Docker support. This project is in progress, I will be adding more features in the future and I open to contributions. Getting Started These instructions will help you set up and use pytest.nvim in your Neovim environment. Prerequisites Neovim 0.5.0 or later pytest in your environment (pip install pytest) Installation Install the pytest.nvim plugin using your preferred plugin manager: Lazyvim: { " richardhapb/pytest.nvim " , opts = {} } Packer: use { " richardhapb/pytest.nvim " , opt = true } Vim-Plug: Plug ' richardhapb/pytest.nvim ' Usage Load the pytest plugin in your Neovim configuration if you haven't already done so. For example: require ( ' pytest ' ). setup () Use the :Pytest command to run the tests in the current buffer. To check the entire buffer: :Pytest To check the output of the tests: :PytestOutput You can attach the test to the current buffer, this runs test on save: :PytestAttach You can d ... Read full article.