Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (20 sloc) 831 Bytes

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-,

Note, this feature is not yet merged into a Bats release. See the github issue for more info.