Emacs mode for editing and running Bats tests
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
README.md
bats-mode.el

README.md

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.