0.3.1 • Published 12 years ago
brofist v0.3.1
Brofist

Minimal BDD test runner that plays along nicely with Browserify.
Example
var spec = require('brofist')()
var assert = require('assert')
spec('λ compose', function(it) {
it('compose(f, g)(x) should be the same as f(g(x))', function() {
assert.strictEqual(f(g(x)), compose(f, g)(x))
})
})
spec.run(require('brofist-minimal')())Then:
$ node run test.js
Success. 1/1 tests.Installing
Just grab it from NPM:
$ npm install brofistDocumentation
A quick reference of the API can be built using Calliope:
$ npm install -g calliope
$ calliope buildA lengthy, narrated documentation is available On the wiki
Tests
On Node:
$ npm testOn the browser:
$ npm install -g brofist-browser
$ brofist-browser serve test/specs/index.js
# Then open the link on any browserPlatform support
This library assumes an ES5 environment, but can be easily supported in ES3 platforms by the use of shims. Just include es5-shim :3
Licence
MIT/X11. ie.: do whatever you want.
