Skip to content

Commit

Permalink
Don't hardcode the sprint command
Browse files Browse the repository at this point in the history
Since we may need a different (i.e. non-standard) way of executing the tests, this patch makes it configurable.
  • Loading branch information
ZenAnnard committed Dec 25, 2019
1 parent 68c16d5 commit d9173c8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions minitest.el
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,17 @@
:type 'list
:group 'minitest)

(defcustom minitest-spring-command '("spring" "rake" "test")
"Spring command for minitest"
:type 'list
:group 'minitest)

(defun minitest-buffer-name (file-or-dir)
(concat "*Minitest " file-or-dir "*"))

(defun minitest-test-command ()
(let ((command (cond (minitest-use-spring '("spring" "rake" "test"))
((minitest-zeus-p) '("zeus" "test"))
(let ((command (cond (minitest-use-spring '(minitest-spring-command "rake" "test"))
((minitest-zeus-p) '("zeus" "test"))
(minitest-use-rails '("bin/rails" "test"))
(t minitest-default-command))))
(if minitest-use-docker (append minitest-docker-command (list minitest-docker-container) command)
Expand Down

0 comments on commit d9173c8

Please sign in to comment.