Simple test runner.
$ npm install --save-dev tess
// test.js
var assert = require('assert')
var tess = require('tess')
tess(function(it) {
it('works', function() {
assert(true)
})
})
- (optional)
- Type:
Object|String
- Type:
String
A label for this suite of tests. You may also pass this in in place of theopts
object.
- Type:
Boolean
Won't print test results to stdout.
- Type:
Function
Encapsulates all of your tests.
When invoked, this function will receive a function as its first argument.
- Type:
String
The name to assign to your test.
- Type:
Function
The function that wraps your assertions.
- Type:
Array
The results of all of your tests after running them.
- Type:
Function
The function that was tested.
- Type:
Boolean
Signals if the test succeeded or failed.
- Type
String
The name of the test that was run.
- Type:
Object
If the test failed, this contains the error object.