For more information or to ask questions about this proposal, see http://groups.drupal.org/node/9511.

One of the major focuses of Drupal 7 will be the emphasis on automated code testing. Browser-based testing of Drupal is currently done as a manual process, and ties up lots of time from patch reviewers who could be focused on other things. While SimpleTest will help with PHP-level testing, we lack a testing framework for JavaScript.

This project will involve integrating Drupal with a JavaScript testing framework, so that tests may written for verifying various enhancements work in multiple browsers.

This project consists of three parts:

1. Research the various JavaScript unit testing options to find one that will allow us to automate functional and unit testing of Drupal's JavaScript functionality in several browsers. Some examples of testing frameworks are JSUnit, Watir, and Selenium.

2. Write a module that integrates this framework with Drupal - so that tests can be submitted as patches, and tests can be triggered from the browser or command line.

3. Write some example tests based on the list of JavaScript tests for core @ http://groups.drupal.org/node/5974