Activate your free membership today | Log-in

Monday, January 9th, 2006

J3Unit: javascript testing + jetty and junit

Category: Builds, Firefox, Java, JavaScript, Testing, Toolkit

<p>
J3Unit is a new OO testing framework for Javascript with optional integration with Jetty and Junit for automation into your test suite. It builds upon the work done with the Script.aculo.us test unit runner and JSUnit.

Of course, you can grab the zip file and just get up and running in static mode. Or take a look at the demo page for how static mode works.

Local browser mode sounds like an alternative to Selenium, or maybe Watir, though the description isn’t quite clear on it:

Local Browser Mode is a JUnit test case DefaultJ3UnitTest that runs both Jetty and Firefox on your local machine. This test case is intended to be included in a larger suite of JUnit tests that the user plans on running directly on his or her machine.

So I’m guessing the idea behind this mode is you can write your test cases in Junit or Javascript, and have a consistent, stand alone run environment with the Jetty+Firefox package. Of course, going with Junit brings with it the possibility of integration with Ant and CruiseControl, as the dojo folks have been doing this for awhile with Jum.

Does anyone know of similiar automation options for Javascript that don’t depend on Ant or Java?

(via Matt, who appears to have trackbacks disabled)

Related Content:

  • How to approach JUnit for unit testing
    JUnit is a useful tool for those conducting unit tests. Expert Mike Kelly explains how to begin using JUnit and recommends resources for those new to...
  • JUnit
    JUnit is an open source framework designed for the purpose of writing and running tests in the Java programming language......
  • Spring 3 testing with JUnit 4
    Looking on the Internet for a way to test my Spring 3 application, I found many articles that describe how to test your application by using JUnit....
  • Test Framework Comparison
    JUnit is probably the oldest and certainly the most popular Java-based testing framework around. Created by Erich Gamma and Kent Beck, JUnit has...
  • Building beautiful software tests around JUnit
    When using Java, it makes sense to build your tests around JUnit. This excerpt from the book Beautiful Code by Alberto Savoia, explains what JUnit is...

Posted by Rob Sanheim at 3:52 pm
2 Comments

+++--
3.9 rating from 31 votes

2 Comments »

Comments feed TrackBack URI

[...] I just ran across this Ajaxian post that points us to something I look forward to looking into. It has every one of my favorite prod-words in it: jUnit, Jetty, JavaScript, script.aculo.us…. [...]

Pingback by Open Sailing » Blog Archive » J3Unit — January 10, 2006

Great information.
thanks
http://www.galaxyweblinks.com/turn-key-solutions/profilebuilder/index.htm

Comment by custumsoftware — April 5, 2008

Leave a comment

You must be logged in to post a comment.