sidlatau / neotest-dart

30 stars 8 forks source link

Reduce usage of Treesitter #8

Open sidlatau opened 1 year ago

sidlatau commented 1 year ago

Related to #7

We are now relying on Treesitter to get test positions. But the LSP outline event has the more correct information about test names and positions, so we should prefer that info. That would also solve an issue with custom test names, no config in this plugin would be required.

One more possible additional improvement - use position to run tests: https://dartcode.org/releases/#testing-improvements

dart test "test/foo_test.dart?line=4"
searleser97 commented 12 months ago

using line index will also solve https://github.com/sidlatau/neotest-dart/issues/9

geardy47 commented 9 months ago

Any update on this? I've issue with nvim-treesitter while editing dart file, so I uninstall dart on treesitter, but I still get No test found even with use_lsp = true