Add rspec-dired-verify-marked for dired mode testing

Implemented `rspec-dired-verify-marked` function to run RSpec on files marked in dired mode. Bound the new function to the key "C-c , m" in `rspec-dired-mode-map`. This allows for batch testing of selected files within the dired interface, streamlining the testing process for multiple files.
This commit is contained in:
Jeremy Dormitzer 2024-10-29 10:45:08 -04:00
parent 951024ed40
commit 1327019fdb

View File

@ -60,9 +60,13 @@
"Runs RSpec on all related specs for the Ruby files changed between the current branch and TARGET-BRANCH." "Runs RSpec on all related specs for the Ruby files changed between the current branch and TARGET-BRANCH."
(interactive) (interactive)
(rspec--run-verify-changed t)) (rspec--run-verify-changed t))
(defun rspec-dired-verify-marked ()
(interactive)
(rspec-run-multiple-files (dired-get-marked-files) (rspec-core-options)))
:general :general
(rspec-mode-map "C-c , g" #'rspec-verify-changed (rspec-mode-map "C-c , g" #'rspec-verify-changed
"C-c , G" #'rspec-verify-changed-related) "C-c , G" #'rspec-verify-changed-related)
(rspec-dired-mode-map "C-c , m" #'rspec-dired-verify-marked)
(rspec-verifiable-mode-map "C-c , g" #'rspec-verify-changed (rspec-verifiable-mode-map "C-c , g" #'rspec-verify-changed
"C-c , G" #'rspec-verify-changed-related) "C-c , G" #'rspec-verify-changed-related)
:custom :custom