Overview

Purpose

The JsUnit server addresses 3 needs:

  1. Logging of results as XML (in the same format that JUnit uses)
  2. Running JsUnit tests from JUnit or Ant on one or more browsers
  3. Running JsUnit tests from JUnit or Ant on one or more remote machines, each of which has different OSs and browsers

3 builds on 1 and 2 to to provide a solution to the old problem of testing web pages on multiple platform/browser combinations automatically. It takes one push of a button to run your Test Suite on all of your target platform/browser combinations. Further, this can be done from any machine as part of your JUnit test suite or Ant build. So at last we have a way of getting JavaScript tests "into the build".

Definition

The JsUnit Server is a Java program that can be launched from from Ant, from a Java program, or from a JUnit test. It provides three HTTP Servlets that, together with the JsUnit HTML/JS application, support 1, 2, and 3 above. The server code lives in jsunit/java.