Javascript Library

nzakas edited this page Nov 23, 2011 · 6 revisions

The YUI Test JavaScript library is the heart of YUI Test as it contains all of the constructs for writing JavaScript tests. Features include:

  • Rapid creation of test cases through simple syntax.
  • Advanced failure detection for methods that throw errors.
  • Grouping of related test cases using test suites.
  • Mock objects for writing tests without external dependencies.
  • Asynchronous tests for testing events and Ajax communication.
  • DOM Event simulation for browser-based JavaScript tests.


These tutorials are the best place to start when getting familiar with YUI Test. They contain the basics that you'll need to know to make use of the library.


When you're ready to push your JavaScript tests to the next level, these tutorials cover more advanced features of YUI Test.


All of the power and convenience you need to create a complete JavaScript testing environment.