Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aq

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aq - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

4

lib/browser.js

@@ -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`
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc