3 URL: https://github.com/jquery/qunit
9 QUnit is a powerful, easy-to-use, JavaScript unit testing framework. It's used
10 by the jQuery project to test its code and plugins but is capable of testing any
11 generic JavaScript code (and even capable of testing JavaScript code on the
14 QUnit is especially useful for regression testing: Whenever a bug is reported,
15 write a test that asserts the existence of that particular bug. Then fix it and
16 commit both. Every time you work on the code again, run the tests. If the bug
17 comes up again - a regression - you'll spot it immediately and know how to fix
18 it, because you know what code you just changed.
20 Having good unit test coverage makes safe refactoring easy and cheap. You can
21 run the tests after each small refactoring step and always know what change
24 QUnit is similar to other unit testing frameworks like JUnit, but makes use of
25 the features JavaScript provides and helps with testing code in the browser,
26 e.g. with its stop/start facilities for testing asynchronous code.
28 It is currently used by the chrome remote desktop team for JavaScript unit
32 No Modifications is made to src/qunit.js.
33 src/browser_test_harness.js is added to enable running the QUnit test suite on
34 try bots using the chromium browser test infrastructure.