0.5.0 • Published 11 years ago

run-qunit v0.5.0

Weekly downloads
2
License
-
Repository
-
Last release
11 years ago

Node-Run-Qunit

Often you want to run your browser tests but get results in node - for use in a CI system for example. This module serves your tests, injects code to report back, and will call a callback whenever the tests finish.

API

var q = require('run-qunit')

var opts = {
  testdir : "/path/to/your/test/directory"
, testpage : "/path/to/your/test/index.html"
, port: 8090 // Port to use for the server
}

var cb = function(){} // called after server is started.

q.start(opts, function(results){
  // This function is called every time a browser finishes the tests.

  console.log(results.passed, results.failed, results.tracebacks); // &c...
}, cb)

q.close() // Kill the server
0.5.0

11 years ago

0.4.0

11 years ago

0.3.0

11 years ago

0.2.0

11 years ago

0.1.0

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.1

11 years ago