AMO:Developers/JavaScriptTesting: Difference between revisions

m
no edit summary
No edit summary
mNo edit summary
Line 1: Line 1:
The [http://github.com/jbalogh/zamboni Zamboni Django app] has quite a bit of JavaScript now for features on the site.  We currently don't have any automated tests to develop on this code base so here are some ideas about how we can add a test suite.
The [http://github.com/jbalogh/zamboni Zamboni Django app] has quite a bit of JavaScript now for features on the site.  We currently don't have any automated tests to run so here are some ideas about how we can make a test suite.


=== Why? ===
=== Why? ===
Line 31: Line 31:
** All user events need to be simulated by triggering the event or otherwise.
** All user events need to be simulated by triggering the event or otherwise.
** does not fit seamlessly into the current test suite (but maybe with NoseJS?)
** does not fit seamlessly into the current test suite (but maybe with NoseJS?)
* Proof of Concept
** You can clone this branch https://github.com/kumar303/zamboni/tree/new-addon-validator-609355 and open http://127.0.0.1:8000/en-US/firefox/qunit/


==== [http://ianb.github.com/doctestjs/ doctest.js] ====
==== [http://ianb.github.com/doctestjs/ doctest.js] ====
Confirmed users
324

edits