nvim-neotest / neotest

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

Persist neotest test results in neovim session #195

Open Willem-J-an opened 1 year ago

Willem-J-an commented 1 year ago

When I run tests, and save my neovim session, then close and re-open the session, the tests that previously succeeded show a question mark again in the summary panel. Is it possible to persist the result of the tests in a session, so they would remain as passed when I re-open a session?

If not, could it be nice as feature request?

Thanks!

andryuha-salo commented 10 months ago

I think this type of cache is destined to fail, considering anything can happen to the code between nvim launches (git pull), so cached results may be outdated

Willem-J-an commented 10 months ago

There is nothing preventing me from doing a git pull without closing neovim. Test results being outdated is not necessarily a problem, just something to keep in mind, paired with an option to reset results when needed.