Run and view tests results inside NeoVim
Uses pantsbuild and pytest to run tests.
Uses plenary, treesitter, nvim-notify, and nvim-terminal. I believe nvim-notify and nvim-terminal are optional (have to make sure nothing breaks if these are not present).
Install using your favorite package manager, mine is:
use {
"sebhein/nvim-tron",
requires = {
"nvim-lua/plenary.nvim",
"nvim-treesitter/nvim-treesitter",
"rcarriga/nvim-notify",
"norcalli/nvim-terminal.lua",
}
}
All of these actions apply to the current focused buffer.
require("tron").run_test()
or:TronRun
require("tron").show_output()
or:TronShow
require("tron").clear_signs()
or:TronClear
- make it work with pants
- find line numbers of tests AFTER the test has finished
- send a notification when test has finished
- use fancy notification
- make a spinner animation while test is running
- don't open scratch again if already open
- fix: placing signs for tests in class
- dont refresh tree for each test
- explain usage in ReadMe
- add some screenshots as example in in ReadMe
- make it configurable
- record and show output of test runs using an overlay window
- handle parametrized tests
- add cargo test runner