With the emergence of extremely interactive web sites and web apps, the JQuery library has become extremely popular for JavaScript event handling, animating, and Ajax interactions in rapid-development environments. The tight project timelines and rapid change for JQuery-based apps makes them great candidates for continuous integration.
I recently came across a discussion thread on continuous integration for Javascript with Bamboo which covers how how to set up continuous integration for your JQuery-based web apps in order to run unit tests written in QUnit, the unit testing framework included in the JQuery library.
The solution described in the discussion uses:

  • Atlassian Bamboo for continuous integration
  • QUnit for testing JQuery and any other client or server-side JavaScript
  • JSTestDriver to launch the tests and convert the output into JUnit-compliant XML

This is a great example of how Bamboo is able to run CI builds for applications written in any programming language. As long as you can start a build from the command line, and format test output in the industry-standard JUnit XML format, Bamboo let’s you easily set up continuous integration.
On top of running command-line based builds for any language, Bamboo supports builds with Ant, Maven, Maven2, make, nAnt, MSBuild and Devenv (Visual Studio) and Grails.
Any xUnit compliant testing tool can be used with your Bamboo builds, including JUnit, Selenium, PHPUnit, TestNG, NUnit, PyUnit, PMD.
Check out the discussion“Running JavaScript unit tests headlessly in a Continuous Integration build”

Continuous Integration for JavaScript using Bamboo