-
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
-
CodeRabbit
CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
-
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.
-
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.
-
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.