bats-mode
is an Emacs mode for editing and running Bats tests.
bats-mode
derives from the bash flavor of sh-mode
, adding font-lock for bats keywords.
If you have a recent Emacs with package.el
, you can install bats-mode
from MELPA.
Or manually add to your emacs load-path
.
Run bats in the current directory.
Keybinding: C-c C-a
Run bats with the current buffer file.
Keybinding: C-c C-,
Run bats with the current test at point.
Keybinding: C-c M-,