Comparing version 0.0.2 to 0.0.3
@@ -5,3 +5,3 @@ var spawn = require( 'child_process' ).spawn; | ||
function Browser(port, browsersToUse) { | ||
function Browser(port, browsersToUse, page) { | ||
var browserSession = null, | ||
@@ -43,3 +43,3 @@ currentBrowserIndex = -1, | ||
browserSession = spawn('open', ['-a', this.currBrowser().path, 'http://localhost:' + port + '/index.html'] ); | ||
browserSession = spawn('open', ['-a', this.currBrowser().path, 'http://localhost:' + port + page] ); | ||
} | ||
@@ -46,0 +46,0 @@ } |
@@ -92,10 +92,2 @@ var path = require( 'path' ), | ||
/** | ||
* Sets the directory where all the unit tests are located | ||
*/ | ||
this.setUnitTestsDir = function(path) { | ||
unitTestsDir = path; | ||
} | ||
io = require('socket.io').listen(server); | ||
@@ -106,3 +98,3 @@ io.set('log level', -1); | ||
browserManagement = new Browser(server.address().port, options.browser ? [options.browser] : null); | ||
browserManagement = new Browser(server.address().port, options.browser ? [options.browser] : null, options.page || '/index.html'); | ||
browserManagement.next(); | ||
@@ -109,0 +101,0 @@ } |
{ | ||
"name" : "aq", | ||
"version" : "0.0.2", | ||
"version" : "0.0.3", | ||
"description" : "App which automates QUnit tests", | ||
@@ -5,0 +5,0 @@ "author" : "Kirollos Risk <kirollos@gmail.com>", |
@@ -1,1 +0,27 @@ | ||
Automate QUnit tests | ||
Automate QUnit tests | ||
### To run the tests | ||
#### From the test server | ||
node server.js | ||
### Command line options: | ||
#### Specify the browser | ||
By default, the unit tests will run on all the browsers specified in `config.js`. To specify the browser, you can use the `-b` option | ||
`node server.js -b chrome` | ||
#### Keep browser open | ||
By default, after all the unit tests have completed running on a browser, that browser session will close. You can choose to keep the browser open with the `-k` option | ||
`node server.js -k true` | ||
#### How to specify which unit tests to run | ||
Insert the unit tests to run after `--` | ||
`node server.js -- test1.html test2.html` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27
10706
10
326