simrat39 / rust-tools.nvim

Tools for better development in rust using neovim's builtin lsp
MIT License
2.17k stars 158 forks source link

adding visibility of unittest binaries #327

Closed 1024bees closed 1 year ago

1024bees commented 1 year ago

this fixes errors described by #324 and #322

underlying issue was that unittests are described with target.kind == "lib" (or bin) by cargo test --mesage-format=json. rust-tools expects that all tests would have target.kind == "test". This prevented unittests from being visible.

We make unittests visible by observing if profile.test is set in a cargo test json artifact

appelgriebsch commented 1 year ago

solves the issue with debugging tests. can this be merged soon?