github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

lukebayes / another-jsunit

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 1
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

A Simple JavaScript unit test framework — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Working on description 
lukebayes (author)
Wed Aug 06 17:57:11 -0700 2008
commit  00461ab649be1ec92e0b68dc02a4af3f4f6a6118
tree    0e3e0575bfc23324e782a4ef2b87e23e143dc405
parent  3ae928a2baf5c32a0a85885b0f361cad1e49aa9a
another-jsunit /
name age
history
message
file MIT-LICENSE Loading commit data...
file README.textile
directory src/
README.textile

Simple JSUnit

This is NOT the official JSUnit project provided by Pivotal Labs.

This project began as an experiment to help me get familiar with JavaScript again and as it turned out, I made some implementation decisions that differ from Pivotal’s JSUnit enough that I decided to share it.

This framework supports testing simple, synchronous features, asynchronous features and even visual components.

Unlike JSUnit, this framework does not simply search a page for methods that begin with ‘test’, but instead expects you to build JavaScript classes that extend the base TestCase. The experience of using this framework should be much more similar to working with JUnit.

The test framework itself is decoupled from any particular JavaScript framework, but I have only created a ResultPrinter for JQuery output. If you’re using a different JS framework, you should check out the jquery-printer.js and jquery-printer.css files for examples of how you might implement what you need.

This framework was developed over a weekend while working on a Rails application. I’m essentially sharing it because I think it may be useful and wanted to see if anyone else agrees.

If you want changes made, fork, change it and send me a pull request. I’m not planning on creating a community around this tool because all of the smart people I know seem to be satisfied with the existing JSUnit framework.

The simple-jsunit-test.js should provide plenty of examples related to testing simple and asynchronous features. You can also test visual elements by using whatever visual framework you have to modify the DOM and verify the results of your modifications.

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server