klen / nvim-test

A Neovim wrapper for running tests
MIT License
176 stars 26 forks source link

Dynamic arguments at runtime #15

Open anrie opened 2 years ago

anrie commented 2 years ago

Hi,

the one thing I am really missing at the moment, is to pass arguments to the test command on the fly. Using pytest for example, every now and then it is really helpful to get more verbose output via -vvv or to drop into the debugger if a test fails with --pdb Ideally one could append these extra flags to the test command, like: TestNearest -vvv --pdb

Is this already doable and I missed how to do it? Otherwise this would be a really helpful feature.

Thanks, Andreas

akhilman commented 2 years ago

I'm thinking about integrating neovim debug tools (:help terminal-debug). It would be nice to have commands like TestDebugFile and let termdebugger varable control the debugger command.

Perhaps it should be done as separate extension.

akhilman commented 2 years ago

Ok. Termdebug seems doesn't work with pdb.

akhilman commented 2 years ago

nvim-dap supports python very well. I'll try to make nvim-dap and nvim-test work together.