nvim-neotest / neotest

An extensible framework for interacting with tests within NeoVim.
MIT License
2.26k stars 112 forks source link

Feature Request: List running processes #66

Closed justusschock closed 2 years ago

justusschock commented 2 years ago

To stop a test process, sometimes you need to know the ID. Especially when running multiple test processes and you want to stop a specific one.

It would be nice, to have a list of currently running processes with their respective ID. Ideally, when calling neotest.run.stop({interactive=True}) or something similar it will do the following:

rcarriga commented 2 years ago

I've added in a client method to get running processes and the run consumer now has an interactive option for attach and stop. It won't automatically select the process if there's only one, but it uses vim.ui.select and you can customise it to do that.