QUnit can also do some server-side Ajax calls using
asyncTest:
asyncTest("mytest", function() {
setTimeout(function(){
// do some Ajax calls here with $.get
ok(true, "always fine");
start(); // continue with other tests
}, 13); // stop and wait around 13 milliseconds before running the test
});
QUnit can also be used for testing with Server Side Javascript, such as Node.js or Rhino:
Examples:
http://github.com/kof/node-qunitor
JsChilicat, which are "headless" in that they can execute JavaScript unit tests without opening a browser.
If you already have Java and Continuous Integration set up, you could try this:
http://www.bitmechanic.com/blog/2009/01/09/continuous-integration-for-qunit-tests/If you want an automated way to open a browser and test the Javascript code, you should look at a
Test Automation Framework->> Josh W. <<-