Earl Grey wrapper around the Mocha testing framework
Latest commit 3682eba Feb 3, 2017 @breuleux 0.1.0
Permalink
Failed to load latest commit information.
src set->set-var May 1, 2015
.gitignore initial bureaucracy Mar 6, 2015
.npmignore initial bureaucracy Mar 6, 2015
README.md more detailed instructions May 1, 2015
package.json 0.1.0 Feb 3, 2017

README.md

earl-mocha

Macro wrappers over mocha for use with the Earl Grey programming language.

Usage:

In test/test.eg:

require-macros:
   earl-mocha ->
      describe, it, before, after, assert, expect-error

describe "testing":
   before:
      @one = 1
      @two = 2
   it "is fun!":
      assert @one + @one == @two
   it "is dangerous!":
      expect-error TypeError:
         null.forbidden-field

Then you can run the command as:

mocha --compilers eg:earlgrey/register

You will need to npm install earlgrey --save-dev for this to work.

If you put --compilers eg:earlgrey/register in test/mocha.opts, you can also simply run mocha.