Own JS/CSS options

Friday, March 27, 2015

Buttercup 1.0 released

I just released version 1.0 of Buttercup, the Behavior-Driven Emacs Lisp Testing framework.

Buttercup is a behavior-driven development framework for testing Emacs Lisp code. It is heavily inspired by Jasmine.

Installation and Use

Buttercup is available from Marmalade and MELPA Stable.

Example test suite:

(describe "A suite"
  (it "contains a spec with an expectation"
    (expect t :to-be t)))

See the package homepage above for a full description of the syntax for test suites and specs.

If placed in a file named like my-test.el, this command executed in the same directory will run the suite:

  emacs -batch -l buttercup.el -f buttercup-run-discover