About:
- Jordan Kasper (on Twitter: @jakerella) works for appendTo (100% distributed)
- They do contract JS applications
- http://qunit.js.com -- built to test jquery
- http://nodejs.org -- use to run tests
- http://gruntjs.com -- a (generic) task runner (runs in node); view the plugins for common tasks
- http://phantomjs.org -- a headless browser (WebKit/V8)
- install node (e.g.
apt-get install node
,brew install node
) - install grunt (e.g.
npm install -g grunt-cli
) - grab qunit fromt he website
- start a project; e.g. (see Jordan's blog post)
quiry/ src/ quirky.js -- a sample app to test tests/ lib/ index.html -- html document that qunuit uses quinit.tests.js -- the tests! Gruntfile.js package.json
- just open the
index.html
file, and see the output generated by qunit. - inspect the listed assertions
- check out the
asyncTest
for testing asynchronous stuff - testing in the browser is tedious, so...
package.json
is a node package config. note thedevDependencies
-- requirments for development- get your requirements installed:
npm install
Gruntfile.js
is where you configure grunt tasks & watch folders (e.g. automatically run tests when things change)- Run
grunt
to test. - Run
grunt watch
to run thewatch
task.
- mockjax -- To Mock ajax calls