1.0.0 • Published 11 years ago
tess v1.0.0
tess
Simple test runner.

Use
$ npm install --save-dev tess// test.js
var assert = require('assert')
var tess = require('tess')
tess(function(it) {
it('works', function() {
assert(true)
})
})API
var results = tess(opts , suite)
opts
- (optional)
- Type:
Object|String
opts.name
- Type:
StringA label for this suite of tests. You may also pass this in in place of theoptsobject.
opts.shh
- Type:
BooleanWon't print test results to stdout.
suite
- Type:
FunctionEncapsulates all of your tests.
When invoked, this function will receive a function as its first argument.
suite(function(title, fn) {})
title
- Type:
StringThe name to assign to your test.
fn
- Type:
FunctionThe function that wraps your assertions.
results
- Type:
ArrayThe results of all of your tests after running them.
results[].fn
- Type:
FunctionThe function that was tested.
results[].success
- Type:
BooleanSignals if the test succeeded or failed.
results[].title
- Type
StringThe name of the test that was run.
results[].error
- Type:
ObjectIf the test failed, this contains the error object.
1.0.0
11 years ago