Function: projectile-test-command

projectile-test-command is a byte-compiled function defined in projectile.el.

Signature

(projectile-test-command COMPILE-DIR)

Documentation

Retrieve the test command for COMPILE-DIR.

The command is determined like this:

- first we check projectile-test-cmd-map for the last
test command that was invoked on the project

- then we check for projectile-project-test-cmd supplied
via .dir-locals.el

- finally we check for the default test command for a
project of that type

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260310.858/projectile.el
(defun projectile-test-command (compile-dir)
  "Retrieve the test command for COMPILE-DIR.

The command is determined like this:

- first we check `projectile-test-cmd-map' for the last
test command that was invoked on the project

- then we check for `projectile-project-test-cmd' supplied
via .dir-locals.el

- finally we check for the default test command for a
project of that type"
  (or (gethash compile-dir projectile-test-cmd-map)
      projectile-project-test-cmd
      (projectile-default-test-command (projectile-project-type))))