Search code examples
jqueryqunit

Testing a build of jQuery


How can I run the qUnit tests shipped with jQuery. I don't understand why there are PHP files, for example here https://github.com/jquery/jquery/tree/master/test/data.

Is there some sort of script that will run all the tests?


Solution

  • There are full usage examples in the documentation; I found them by googling jquery test and going to the first result.

    To use QUnit, you have to include its qunit.js and qunit.css files and provide a basic HTML structure for displaying the test results [code follows].

    jquery/test/index.html already appears to perform full coverage of the jQuery tests.