Years have passed and much better javascript testing options have appeared. Time to say goodbye.
SugarTest is a wrapper for JsUnitTest with a simple but feature rich syntax.
Features:
- simple, chainable syntax
- setup and teardown routines
- nested contexts
- easy configuration of alias (use your own style)
- no dependencies
- makes you fat
Please visit http://sugartest.scriptia.net for more information.
SugarTest()
.describe('A context')
.before(function() {
this.something = 1;
})
.it('runs its setup function', function() {
this.assertEqual(1, this.something);
})
.describe('which is an inner context')
.before(function() {
this.something += 1;
})
.it('runs both setup functions', function() {
this.assertEqual(2, this.something);
})
.end()
.end()
.run();
SugarTest has been created by Choan Galvez and is freely distributable under the terms of a MIT-style license. The source code resides in a Git repository at github.