Cerbere is a a global mode for TDD in Emacs. Some backends are available:
The recommended way to install cerbere
is via MELPA:
M-x package-install cerbere
or Cask:
(depends-on "cerbere")
In your .emacs
file, add this :
(add-hook 'python-mode-hook 'cerbere-mode)
(add-hook 'go-mode-hook 'cerbere-mode)
(add-hook 'web-mode-hook 'cerbere-mode)
Keybinding | Description |
---|---|
C-c c t | launch the current unit test |
C-c c f | launch unit tests of the current file |
C-c c p | launch all unit tests for current project |
C-c c l | relaunch the last executed test |
C-c c d | relaunch the current test or the last executed test |
To add a new backend, see the documentation for cerbere-define-backend
.
cerbere
use Cask (>=0.6) for
dependencies management. Install it and retrieve dependencies :
$ curl -fsSkL https://raw.github.com/cask/cask/master/go | python
$ export PATH="$HOME/.cask/bin:$PATH"
$ cask
Launch unit tests :
$ cask exec ert-runner
See here
Scame is released under the MIT License
A changelog is available here.
Nicolas Lamirault nicolas.lamirault@gmail.com