Skip to content
This repository has been archived by the owner on Jul 18, 2019. It is now read-only.

choan/sugar_test

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
lib
 
 
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

SugarTest is officially abandoned

Years have passed and much better javascript testing options have appeared. Time to say goodbye.

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.

About

SugarTest - Makes JavaScript testing sweet (abandoned)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published