nvim-neotest / neotest

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

[FEATURE REQUEST] rerun only failed tests #343

Closed otavioschwanck closed 6 months ago

otavioschwanck commented 6 months ago

Would be awesome to have a way to rerun failed tests (by document or workspace).

mesa123123 commented 6 months ago

Would this command do it?

lua require('neotest').run.run({status = "failed" })

I think its been working for me

otavioschwanck commented 6 months ago

lua require('neotest').run.run({status = "failed" })

worked, thanks

tenstan commented 1 month ago

Does this still work? lua require('neotest').run.run({status = "failed" }) only runs the nearest test for me, and I don't see anything about a status option mentioned in the docs for run().