Updates RunNearestSpec to always run the last nearest spec, and
RunCurrentSpecFile to always run the last entire file.
An example workflow:
Write a test, run only it with <leader>s (RunNearestSpec)
Switch to source file, implement change, run single test again with
<leader>s (RunNearestSpec)
While still in the source file, run the entire test file with
<leader>t (RunCurrentSpecFile)
Profit
I've never used vspec before, so there's probably some jankiness there that could be cleaned up. Any feedback about it or Vimscript best practices would be amazing :heart_eyes:.
Updates
RunNearestSpec
to always run the last nearest spec, andRunCurrentSpecFile
to always run the last entire file.An example workflow:
<leader>s
(RunNearestSpec
)<leader>s
(RunNearestSpec
)<leader>t
(RunCurrentSpecFile
)I've never used vspec before, so there's probably some jankiness there that could be cleaned up. Any feedback about it or Vimscript best practices would be amazing :heart_eyes:.