
Features:
Check the SugarTest tutorial for usage information.
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. SugarTest Logo designed by Ale Muñoz, released under a WTFPL License. SugarTest is a fork of jShoulda featuring a revised syntax and new features.
SugarTest()
.describe('A context')
.before(function(data) {
data.something = 1;
})
.it('runs its setup function', function(data) {
this.assertEqual(1, data.something);
})
.describe('which is an inner context')
.before(function(data) {
data.something += 1;
})
.it('runs both setup functions', function(data) {
this.assertEqual(2, data.something);
})
.end()
.end()
.run();
Tests results will be displayed here.