Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/breuleux/earl-mocha
Earl Grey wrapper around the Mocha testing framework
https://github.com/breuleux/earl-mocha
Last synced: 9 days ago
JSON representation
Earl Grey wrapper around the Mocha testing framework
- Host: GitHub
- URL: https://github.com/breuleux/earl-mocha
- Owner: breuleux
- Created: 2015-03-06T21:57:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-03T08:05:13.000Z (almost 8 years ago)
- Last Synced: 2024-10-18T18:54:21.029Z (28 days ago)
- Size: 8.79 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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-errordescribe "testing":
before:
@one = 1
@two = 2
it "is fun!":
assert @one + @one == @two
it "is dangerous!":
expect-error TypeError:
null.forbidden-fieldThen 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`.