busterjs / buster

Abandoned - A powerful suite of automated test tools for JavaScript.
http://docs.busterjs.org
Other
448 stars 37 forks source link

Where to set runner.timeout? #478

Open butchmarshall opened 7 years ago

butchmarshall commented 7 years ago

I keep hitting the 15000 ms runner timeout in lib/runners/browser/remote-runner.js

function monitorClientTimeout(runner, client) { clearTimeout(client.timer); client.timer = setTimeout(function () { runner.clientTimeout(client); }, runner.timeout || 15000); }

I'm setting this.timeout in the prepare(), and this does timeout, however, I cannot seem to find a way to set the runner.timeout?

buster.testCase("my_test", { prepare: function() { this.timeout = 30000; }, setUp: function() { }, [...] })

I think this is set via testRunnerOptions... but I cannot figure out where to set testRunnerOptions either!

butchmarshall commented 7 years ago

So, I don't think its possible to set this?

It looks like the runner created has no props passed to it?

module.exports = bane.createEventEmitter({ create: function (emitter, logger) { var runner = Object.create(this); runner.emitter = emitter; runner.logger = logger; runner.console = runner; delegateEvents(emitter, runner); monitorSlaveDeath(this, emitter); return runner; },