YUI Test features:
Rapid creation of test cases through simple syntax.
Advanced failure detection for methods that throw errors.
Grouping of related test cases using test suites.
Asynchronous tests for testing events and Ajax communication.
DOM Event simulation in all A-grade browsers.
Video: Test-Driven Development with YUI Test
To use YUI Test, include the following source files in your web page: