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

@wdio/local-runner

Package Overview
Dependencies
Maintainers
3
Versions
642
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wdio/local-runner - npm Package Compare versions

Comparing version 5.0.0-beta.10 to 5.0.0-beta.12

build/repl.js

11

build/run.js

@@ -20,2 +20,6 @@ "use strict";

if (!m || !m.command) {
return log.info('Ignore message for worker:', m);
}
log.info(`Run worker command: ${m.command}`);

@@ -53,5 +57,10 @@ runner[m.command](m).then(result => process.send({

(0, _asyncExitHook.default)(callback => {
if (!callback) {
return;
}
runner.sigintWasCalled = true;
log.info(`Received SIGINT, giving process ${_constants.SHUTDOWN_TIMEOUT}ms to shutdown gracefully`);
setTimeout(callback, _constants.SHUTDOWN_TIMEOUT);
});
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9ydW4uanMiXSwibmFtZXMiOlsibG9nIiwicnVubmVyIiwiUnVubmVyIiwicHJvY2VzcyIsIm9uIiwibSIsImluZm8iLCJjb21tYW5kIiwidGhlbiIsInJlc3VsdCIsInNlbmQiLCJvcmlnaW4iLCJuYW1lIiwiY29udGVudCIsImUiLCJlcnJvciIsImV4aXQiLCJtZXNzYWdlIiwic3RhY2siLCJjYWxsYmFjayIsIlNIVVRET1dOX1RJTUVPVVQiLCJzZXRUaW1lb3V0Il0sIm1hcHBpbmdzIjoiOzs7O0FBQUE7O0FBRUE7O0FBQ0E7O0FBRUE7Ozs7QUFFQSxNQUFNQSxHQUFHLEdBQUcscUJBQU8sbUJBQVAsQ0FBWjtBQUVBLE1BQU1DLE1BQU0sR0FBRyxJQUFJQyxlQUFKLEVBQWY7QUFDQUMsT0FBTyxDQUFDQyxFQUFSLENBQVcsU0FBWCxFQUF1QkMsQ0FBRCxJQUFPO0FBQUE7O0FBQ3pCTCxFQUFBQSxHQUF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7XG4gICAgICAgIHJldHVyblxuICAgIH1cblxuICAgIHJ1bm5lci5zaWdpbnRXYXNDYWxsZWQgPSB0cnVlXG4gICAgbG9nLmluZm8oYFJlY2VpdmVkIFNJR0lOVCwgZ2l2aW5nIHByb2Nlc3MgJHtTSFVURE9XTl9USU1FT1VUfW1zIHRvIHNodXRkb3duIGdyYWNlZnVsbHlgKVxuICAgIHNldFRpbWVvdXQoY2FsbGJhY2ssIFNIVVRET1dOX1RJTUVPVVQpXG59KVxuIl19

13

build/transformStream.js

@@ -13,9 +13,16 @@ "use strict";

class RunnerTransformStream extends _stream.Transform {
constructor(cid) {
constructor(cid, emitter) {
super();
this.cid = cid;
this.emitter = emitter;
}
_transform(chunk, encoding, callback) {
this.push(`[${this.cid}] ${chunk.toString()}`);
const logMsg = chunk.toString();
if (logMsg.startsWith('Debugger listening on ws')) {
return callback();
}
this.push(`[${this.cid}] ${logMsg}`);
callback();

@@ -27,2 +34,2 @@ }

exports.default = RunnerTransformStream;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy90cmFuc2Zvcm1TdHJlYW0uanMiXSwibmFtZXMiOlsiUnVubmVyVHJhbnNmb3JtU3RyZWFtIiwiVHJhbnNmb3JtIiwiY29uc3RydWN0b3IiLCJjaWQiLCJfdHJhbnNmb3JtIiwiY2h1bmsiLCJlbmNvZGluZyIsImNhbGxiYWNrIiwicHVzaCIsInRvU3RyaW5nIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQTs7QUFFZSxNQUFNQSxxQkFBTixTQUFvQ0MsaUJBQXBDLENBQThDO0FBQ3pEQyxFQUFBQSxXQUFXLENBQUVDLEdBQUYsRUFBTztBQUNkO0FBQ0EsU0FBS0EsR0FBTCxHQUFXQSxHQUFYO0FBQ0g7O0FBRURDLEVBQUFBLFVBQVUsQ0FBQ0MsS0FBRCxFQUFRQyxRQUFSLEVBQWtCQyxRQUFsQix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soKVxuICAgIH1cbn1cbiJdfQ==

@@ -20,4 +20,10 @@ "use strict";

var _repl = _interopRequireDefault(require("./repl"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
const log = (0, _logger.default)('wdio-local-runner');

@@ -71,3 +77,4 @@ /**

const runnerEnv = Object.assign(process.env, this.config.runnerEnv, {
WDIO_LOG_LEVEL: this.config.logLevel
WDIO_LOG_LEVEL: this.config.logLevel,
WDIO_WORKER: true
});

@@ -81,3 +88,3 @@

const childProcess = _child_process.default.fork(_path.default.join(__dirname, 'run.js'), argv, {
const childProcess = this.childProcess = _child_process.default.fork(_path.default.join(__dirname, 'run.js'), argv, {
cwd: process.cwd(),

@@ -89,42 +96,95 @@ env: runnerEnv,

childProcess.on('message', payload => {
/**
* resolve pending commands
*/
if (payload.name === 'finisedCommand') {
this.isBusy = false;
}
/**
* store sessionId and connection data to worker instance
*/
childProcess.on('message', this._handleMessage.bind(this));
childProcess.on('error', this._handleError.bind(this));
childProcess.on('exit', this._handleExit.bind(this));
/* istanbul ignore if */
if (!process.env.JEST_WORKER_ID) {
childProcess.stdout.pipe(new _transformStream.default(cid)).pipe(process.stdout);
childProcess.stderr.pipe(new _transformStream.default(cid)).pipe(process.stderr);
process.stdin.pipe(childProcess.stdin);
}
if (payload.name === 'sessionStarted') {
this.sessionId = payload.content.sessionId;
delete payload.content.sessionId;
Object.assign(this.server, payload.content);
}
return childProcess;
}
this.emit('message', Object.assign(payload, {
cid
}));
});
childProcess.on('error', payload => this.emit('error', Object.assign(payload, {
_handleMessage(payload) {
const {
cid,
childProcess
} = this;
/**
* resolve pending commands
*/
if (payload.name === 'finisedCommand') {
this.isBusy = false;
}
/**
* store sessionId and connection data to worker instance
*/
if (payload.name === 'sessionStarted') {
this.sessionId = payload.content.sessionId;
delete payload.content.sessionId;
Object.assign(this.server, payload.content);
}
this.emit('message', Object.assign(payload, {
cid
})));
childProcess.on('exit', code => {
/**
* delete process of worker
*/
delete this.childProcess;
this.isBusy = false;
log.debug(`Runner ${cid} finished with exit code ${code}`);
this.emit('exit', {
cid,
exitCode: code
}));
/**
* handle debug command called within worker process
*/
if (payload.origin === 'debugger' && payload.name === 'start') {
this.repl = new _repl.default(childProcess, _objectSpread({
prompt: `[${cid}] \u203A `
}, payload.params));
this.repl.start().then(() => {
const ev = {
origin: 'debugger',
name: 'stop'
};
childProcess.send(ev);
this.emit('message', ev);
});
}
/**
* handle debugger results
*/
if (this.repl && payload.origin === 'debugger' && payload.name === 'result') {
this.repl.onResult(payload.params);
}
}
_handleError(payload) {
const {
cid
} = this;
this.emit('error', Object.assign(payload, {
cid
}));
}
_handleExit(exitCode) {
const {
cid,
childProcess
} = this;
/**
* delete process of worker
*/
delete this.childProcess;
this.isBusy = false;
log.debug(`Runner ${cid} finished with exit code ${exitCode}`);
this.emit('exit', {
cid,
exitCode
});
childProcess.stdout.pipe(new _transformStream.default(cid)).pipe(process.stdout);
childProcess.stderr.pipe(new _transformStream.default(cid)).pipe(process.stderr);
return childProcess;
childProcess.kill('SIGTERM');
}

@@ -177,2 +237,2 @@ /**

exports.default = WorkerInstance;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy93b3JrZXIuanMiXSwibmFtZXMiOlsibG9nIiwiV29ya2VySW5zdGFuY2UiLCJFdmVudEVtaXR0ZXIiLCJjb25zdHJ1Y3RvciIsIm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ixcbiAgICAgICAgICAgIGV4ZWNBcmd2LFxuICAgICAgICAgICAgc2lsZW50OiB0cnVlXG4gICAgICAgIH0pXG5cbiAgICAgICAgY2hpbGRQcm9jZXNzLm9uKCdtZXNzYWdlJywgKHBheWxvYWQpID0+IHtcbiAgICAgICAgICAgIC8qKlxuICAgICAgICAgICAgICogcmVzb2x2ZSBwZW5kaW5nIGNvbW1hbmRzXG4gICAgICAgICAgICAgKi9cbiAgICAgICAgICAgIGlmIChwYXlsb2FkLm5hbWUgPT09ICdmaW5pc2VkQ29tbWFuZCcpIHtcbiAgICAgICAgICAgICAgICB0aGlzLmlzQnVzeSA9IGZhbHNlXG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIC8qKlxuICAgICAgICAgICAgICogc3RvcmUgc2Vzc2lvbklkIGFuZCBjb25uZWN0aW9uIGRhdGEgdG8gd29ya2VyIGluc3RhbmNlXG4gICAgICAgICAgICAgKi9cbiAgICAgICAgICAgIGlmIChwYXlsb2FkLm5hbWUgPT09ICdzZXNzaW9uU3RhcnRlZCcpIHtcbiAgICAgICAgICAgICAgICB0aGlzLnNlc3Npb25JZCA9IHBheWxvYWQuY29udGVudC5zZXNzaW9uSWRcbiAgICAgICAgICAgICAgICBkZWxldGUgcGF5bG9hZC5jb250ZW50LnNlc3Npb25JZFxuICAgICAgICAgICAgICAgIE9iamVjdC5hc3NpZ24odGhpcy5zZXJ2ZXIsIHBheWxvYWQuY29udGVudClcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgdGhpcy5lbWl0KCdtZXNzYWdlJywgT2JqZWN0LmFzc2lnbihwYXlsb2FkLCB7IGNpZCB9KSlcbiAgICAgICAgfSlcblxuICAgICAgICBjaGlsZFByb2Nlc3Mub24oJ2Vycm9yJyxcbiAgICAgICAgICAgIChwYXlsb2FkKSA9PiB0aGlzLmVtaXQoJ2Vycm9yJywgT2JqZWN0LmFzc2lnbihwYXlsb2FkLCB7IGNpZCB9KSkpXG5cbiAgICAgICAgY2h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Ghpcy5lbWl0KCdtZXNzYWdlJywgT2JqZWN0LmFzc2lnbihwYXlsb2FkLCB7IGNpZCB9KSlcblxuICAgICAgICAvKipcbiAgICAgICAgICogaGFuZGxlIGRlYnVnIGNvbW1hbmQgY2FsbGVkIHdpdGhpbiB3b3JrZXIgcHJvY2Vzc1xuICAgICAgICAgKi9cbiAgICAgICAgaWYgKHBheWxvYWQub3JpZ2luID09PSAnZGVidWdnZXInICYmIHBheWxvYWQubmFtZSA9PT0gJ3N0YXJ0Jykge1xuICAgICAgICAgICAgdGhpcy5yZXBsID0gbmV3IFdESU9SZXBsKFxuICAgICAgICAgICAgICAgIGNoaWxkUHJvY2VzcyxcbiAgICAgICAgICAgICAgICB7IHByb21wdDogYFske2NpZH1dIFxcdTIwM0EgYCwgLi4ucGF5bG9hZC5wYXJhbXMgfVxuICAgICAgICAgICAgKVxuICAgICAgICAgICAgdGhpcy5yZXBsLnN0YXJ0KCkudGhlbigoKSA9PiB7XG4gICAgICAgICAgICAgICAgY29uc3QgZXYgPSB7XG4gICAgICAgICAgICAgICAgICAgIG9yaWdpbjogJ2RlYnVnZ2VyJyxcbiAgICAgICAgICAgICAgICAgICAgbmFtZTogJ3N0b3AnXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGNoaWxkUHJvY2Vzcy5zZW5kKGV2KVxuICAgICAgICAgICAgICAgIHRoaXMuZW1pdCgnbWVzc2FnZScsIGV2KVxuICAgICAgICAgICAgfSlcbiAgICAgICAgfVxuXG4gICAgICAgIC8qKlxuICAgICAgICAgKiBoYW5kbGUgZGVidWdnZXIgcmVzdWx0c1xuICAgICAgICAgKi9cbiAgICAgICAgaWYgKHRoaXMucmVwbCAmJiBwYXlsb2FkLm9yaWdpbiA9PT0gJ2RlYnVnZ2VyJyAmJiBwYXlsb2FkLm5hbWUgPT09ICdyZXN1bHQnKSB7XG4gICAgICAgICAgICB0aGlzLnJlcGwub25SZXN1bHQocGF5bG9hZC5wYXJhbXMpXG4gICA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CBjYXBzLCBzcGVjcywgc2VydmVyLCBpc0J1c3kgfSA9IHRoaXNcblxuICAgICAgICBpZiAoaXNCdXN5ICYmIGNvbW1hbmQgIT09ICdlbmRTZXNzaW9uJykge1xuICAgICAgICAgICAgcmV0dXJuIGxvZy5pbmZvKGB3b3JrZXIgd2l0aCBjaWQgJHtjaWR9IGFscmVhZHkgYnVzeSBhbmQgY2FuJ3QgdGFrZSBuZXcgY29tbWFuZHNgKVxuICAgICAgICB9XG5cbiAgICAgICAgLyoqXG4gICAgICAgICAqIHN0YXJ0IHVwIHByb2Nlc3MgaWYgd29ya2VyIGhhc24ndCBkb25lIHlldCBvciBpZiBjaGlsZCBwcm9jZXNzXG4gICAgICAgICAqIGNsb3NlcyBhZnRlciBydW5uaW5nIGl0cyBqb2JcbiAgICAgICAgICovXG4gICAgICAgIGlmICghdGhpcy5jaGlsZFByb2Nlc3MpIHtcbiAgICAgICAgICAgIHRoaXMuY2hpbGRQcm9jZXNzID0gdGhpcy5zdGFydFByb2Nlc3MoKVxuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy5jaGlsZFByb2Nlc3Muc2VuZCh7IGNpZCwgY29tbWFuZCwgY29uZmlnRmlsZSwgYXJndiwgY2Fwcywgc3BlY3MsIHNlcnZlciB9KVxuICAgICAgICB0aGlzLmlzQnVzeSA9IHRydWVcbiAgICB9XG59XG4iXX0=
{
"name": "@wdio/local-runner",
"version": "5.0.0-beta.10",
"version": "5.0.0-beta.12",
"description": "A WebdriverIO runner to run tests locally",

@@ -34,4 +34,5 @@ "author": "Christian Bromann <christian@saucelabs.com>",

"dependencies": {
"@wdio/logger": "^5.0.0-beta.10",
"@wdio/runner": "^5.0.0-beta.10",
"@wdio/logger": "^5.0.0-beta.12",
"@wdio/repl": "^5.0.0-beta.12",
"@wdio/runner": "^5.0.0-beta.12",
"async-exit-hook": "^2.0.1"

@@ -42,3 +43,3 @@ },

},
"gitHead": "6d5e90a29903eb5097377488de76701f0aa36aa4"
"gitHead": "f690f04cceebb45f695d8fff9d3fa6916654ee87"
}
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