Skip to content

sebhein/nvim-tron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NeoVim Tron

Run and view tests results inside NeoVim

⚠️ This is a personal project, if you are looking for something more serious I recommend Neotest

Uses pantsbuild and pytest to run tests.

Setup

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:

packer.nvim

use {
  "sebhein/nvim-tron",
  requires = {
    "nvim-lua/plenary.nvim",
    "nvim-treesitter/nvim-treesitter",
    "rcarriga/nvim-notify",
    "norcalli/nvim-terminal.lua",
  }
}

Usage

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

TODO

  • 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

About

Run and view test results in NeoVim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages