bats-mode
bats-mode copied to clipboard
Emacs mode for editing and running Bats tests
bats-mode
Synopsis
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.
Installation
If you have a recent Emacs with package.el
, you can install bats-mode
from MELPA.
Or manually add to your emacs load-path
.
Usage
bats-run-all
Run bats in the current directory.
Keybinding: C-c C-a
bats-run-current-file
Run bats with the current buffer file.
Keybinding: C-c C-,
bats-run-current-test
Run bats with the current test at point.
Keybinding: C-c M-,