Closed tomhampshire closed 2 years ago
I wrote a Rust plugin using cargo-nextest. That should fix your issue!
Awesome, thanks. I'm running it now and it's doing the job great!
For other people that could see this, it should be working now. Issue was that vim-test uses relative paths whereas neotest uses absolute paths.
Running:
lua require("neotest").run.run(vim.fn.expand("%"))
on a rust source code file shows both false positives and false negatives.A minimal test file is below. In this example, the function, and the test, both produce a "tick" (the
silly_test
test should fail). The neotest test output shows that no tests have been run, however, running with vim-test'sTestFile
correctly runs the tests and shows the failed test.