What's the best tool for testing?

This page summarizes the projects mentioned and recommended in the original post on /r/neovim

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • vim-ultest

    The ultimate testing plugin for (Neo)Vim

  • Love seeing my plugins in the wild! Just FYI for anyone reading vim-ultest has an integration with nvim-dap which allows you to write debugging configs for any language and debug tests. There are currently recipes for python and go but I'd love to see more added! https://github.com/rcarriga/vim-ultest/wiki/Debugging-Recipes

    I open a tmux split pane, or a floating terminal window in Neovim for one-off commands. I also use Navigator.nvim for seamless navigation between Neovim splits and tmux panes.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • vim-test

    Run your tests at the speed of thought

  • I use vim-ultest, which builds upon vim-test (you need them both). Works pretty nicely, I don't know if it's the best solution there is, but it's good enough for me.

  • nvim-dap

    Debug Adapter Protocol client implementation for Neovim

  • Running the test is easy, debugging the test is what's really interesting. I use nvim-dap (with nvim-dap-ui for a nice UI) as a generic debugger client. Then I need some code which can find the test nearest to the cursor and I can instruct my debugger to run that test function. How to pull that off depends highly on your programming language, but for Python there is nvim-dap-python which solves the problem using Tree Sitter.

  • nvim-dap-ui

    A UI for nvim-dap

  • Running the test is easy, debugging the test is what's really interesting. I use nvim-dap (with nvim-dap-ui for a nice UI) as a generic debugger client. Then I need some code which can find the test nearest to the cursor and I can instruct my debugger to run that test function. How to pull that off depends highly on your programming language, but for Python there is nvim-dap-python which solves the problem using Tree Sitter.

  • nvim-dap-python

    An extension for nvim-dap, providing default configurations for python and methods to debug individual test methods or classes.

  • Running the test is easy, debugging the test is what's really interesting. I use nvim-dap (with nvim-dap-ui for a nice UI) as a generic debugger client. Then I need some code which can find the test nearest to the cursor and I can instruct my debugger to run that test function. How to pull that off depends highly on your programming language, but for Python there is nvim-dap-python which solves the problem using Tree Sitter.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts