Function: web-mode-test

web-mode-test is an interactive and natively compiled function defined in web-mode.el.

Signature

(web-mode-test)

Documentation

Executes web-mode unit tests. See web-mode-tests-directory.

Key Bindings

This command is not in any keymaps.

Source Code

;; Defined in /nix/store/2qgnz1rp30nzfz6w0apx4kdm14if1bbs-emacs-packages-deps/share/emacs/site-lisp/elpa/web-mode-20260831.219/web-mode.el
;;---- UNIT TESTING ------------------------------------------------------------

(defun web-mode-test ()
  "Executes web-mode unit tests. See `web-mode-tests-directory'."
  (interactive)
  (let (files regexp)
    (setq regexp "^[[:alnum:]][[:alnum:]._]+\\'")
    (setq files (directory-files web-mode-tests-directory t regexp))
    (dolist (file files)
      (cond
        ((eq (string-to-char (file-name-nondirectory file)) ?\_)
         (delete-file file))
        (t
         (web-mode-test-process file))
        ) ;cond
      ) ;dolist
    ))