Erik A. Hanson's Weblog

Minor New Features In JsUnit 2.2alpha24

Posted: August 9th, 2007    Tags: Javascript, JsUnit, Unit Testing

I added a few new features to JsUnit and tagged it as version 2.2 alpha 24. Browse the new version at SourceForge or check it out like this:

svn co https://jsunit.svn.sf.net/svnroot/jsunit/tags/v2_2alpha24/jsunit/ jsunit

Show Log

There’s now a “Show Log” button that opens a window with a log of what JsUnit has been up to.

New Log Button

New log button (click image for larger view)

New Log Window

New log window (click image for larger view)

New URL Parameters

There are three new URL parameters:

  • suppressDialogs=true will suppress JsUnit’s dialogs in interactive mode
  • setupPageTimeout=n will change the timeout for the setupPage call
  • pageLoadTimeout=n will change the page load timeout

Easier Suite Creation

The jsUnitTestSuite constructor now accepts test pages and subsuites as parameters. So instead of this:

function suite() {
  var suite = new jsUnitTestSuite();
  suite.addTestPage("/foo/barTest.html");
  suite.addTestPage("/foo/bazTest.html");
  return suite;
}

you can do this:

function suite() {
  return new jsUnitTestSuite("/foo/barTest.html", "/foo/bazTest.html");
}


Leave a Reply

About Me

I'm a software developer and consultant in San Francisco. I mostly develop web apps in Javascript, Java and Rails. There's a little more about me on my LinkedIn profile.

Recent Projects

wshlst.com: a group-oriented wish list website.

BoardsConsult​/​RotationTracker: a site to help medical residents prepare for the U.S. Medical Licensing Exam, and a related site to help medical schools evaluate and track the progress of the residents in their programs.

Jobs

I moderate a few completely free jobs mailing lists with RSS feeds and zero spam: XP jobs, Rails jobs and Mac development jobs. Also, my pals at Pivotal Labs have agile Rails and Java job openings.

Plug: Web Hosting

Looking for cheap shared web hosting and/or domain registration? I've been using DreamHost for years and I've been very happy with them. They offer tons of disk space and bandwidth, one-click installation for apps like WordPress and Gallery, unlimited domains, thousands of email accounts, private domain registration, and more. They are also a nice bunch of folks, not some big dumb company.