Skip to content
SugarTest - Makes JavaScript testing sweet
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
branding
config
lib
sample
script
site
src
tasks
test
.gitignore
.gitmodules
History.txt
License.txt
README.mdown
Rakefile

README.mdown

SugarTest - Makes JavaScript testing sweet

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.

Example

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();

Author, license, source code

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.

You can’t perform that action at this time.