Diff for "JavaScriptIntegrationTesting"

Not logged in - Log In / Register

Differences between revisions 2 and 3
Revision 2 as of 2009-02-26 15:45:26
Size: 1038
Editor: mars
Comment:
Revision 3 as of 2009-02-26 18:01:07
Size: 1264
Editor: mars
Comment:
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
== Unit tests == == Testing the lazr-js Widget Library ==
=== Unit testing ===
Line 17: Line 18:
  ''This process is really onerous - maybe the YUI 2 Test``Manager offers a better way to handle this. ---- [[LaunchpadHome:mars]] <<DateTime(2009-02-26T15:43:40Z)>>''   ''This process is really onerous - maybe the YUI 2 Test``Manager offers a better way to handle this. -- [[LaunchpadHome:mars]] <<DateTime(2009-02-26T15:43:40Z)>>''

=== Acceptance testing ===

You can try out stand-alone versions of the lazr-js widgets using the `examples/` pages. E.g.:

{{{
$ firefox examples/inlineedit/index.html
}}}

Testing JavaScript

Launchpad's JavaScript testing consists of unit tests built with YUI 3's yuitest library, and automated acceptance testing using the Windmill framework. We use the GradedBrowserSupport chart to determine which browsers code should be regularly tested in.

Testing the lazr-js Widget Library

Unit testing

The unit tests can be run stand-alone from the lazr-js project.

To run the lazr-js test suite:

  1. Grab a copy of the lazr-js trunk:  bzr get lp:lazr-js 

  2. Change to the tests/ directory of the component you want to test. For example, $ cd src/inlineeditor/tests/.

  3. Load any HTML files you find into your browser. The test suite will run automatically.
    • This process is really onerous - maybe the YUI 2 TestManager offers a better way to handle this. -- mars 2009-02-26 15:43:40

Acceptance testing

You can try out stand-alone versions of the lazr-js widgets using the examples/ pages. E.g.:

$ firefox examples/inlineedit/index.html


CategoryJavaScript CategoryTesting

JavaScriptIntegrationTesting (last edited 2011-12-21 20:34:00 by bac)