README.chromium 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. Name: QUnit
  2. Short Name: QUnit
  3. URL: https://github.com/jquery/qunit
  4. Version: 1.17.1
  5. License: MIT
  6. License File: NOT_SHIPPED
  7. Security Critical: no
  8. Description:
  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
  12. server-side).
  13. QUnit is especially useful for regression testing: Whenever a bug is reported,
  14. write a test that asserts the existence of that particular bug. Then fix it and
  15. commit both. Every time you work on the code again, run the tests. If the bug
  16. comes up again - a regression - you'll spot it immediately and know how to fix
  17. it, because you know what code you just changed.
  18. Having good unit test coverage makes safe refactoring easy and cheap. You can
  19. run the tests after each small refactoring step and always know what change
  20. broke something.
  21. QUnit is similar to other unit testing frameworks like JUnit, but makes use of
  22. the features JavaScript provides and helps with testing code in the browser,
  23. e.g. with its stop/start facilities for testing asynchronous code.
  24. It is currently used by the chrome remote desktop team for JavaScript unit
  25. testing.
  26. Local Modifications:
  27. No Modifications is made to src/qunit.js.
  28. src/browser_test_harness.js is added to enable running the QUnit test suite on
  29. try bots using the chromium browser test infrastructure. It also automatically
  30. fails a test case if it doesn't return within a timeout of 5 seconds.