Simply another unit test framework for node.js
- Tries to support async tests
- Saves typing
- No scope or object shall be cluttered
- NO huge object literals or 7-level indentation
- Keeps a "right" design internally (which you won't see)
- Extended assertion method
- Ensure callback's called and event's fired
- Set timeout for tests
- A better-than-nothing command line test runner
- setup support
- teardown support
- Suite-wise setup/teardown (startup and shutdown would be good names)
- Nested test suites
- Colored output, web runner...
- Watch mode?
- Tagged tests and/or suites
- Custom running policy for skipping/picking tests
- Custom test result reporter (after the internal API stablized)
- Any crazy idea(s)
By using npm:
$ npm install reut
Install from repo:
$ cp -r src ~/.node_libraries/reut
# Assuming ~/bin is in your $PATH
$ ln -s ~/.node_libraries/reut/bin/cli.js ~/bin/reut
$ cat <<EOF >hello.js
var reut = require("reut")
reut.test("Say hello in Chinese!", function(test) {
test.ok(true, "你好")
})
EOF
# And here we go
$ reut hello.js
Document doc/api.mkd sucks. See example/* instead.