mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
allow browser tests to be runOnce
Original commit: elastic/kibana-plugin-helpers@ede52ece0e
This commit is contained in:
parent
43c6f9c660
commit
df21e54e57
1 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
module.exports = function (plugin) {
|
||||
module.exports = function (plugin, opts = {}) {
|
||||
var execFileSync = require('child_process').execFileSync;
|
||||
|
||||
var kbnServerArgs = [
|
||||
|
@ -7,7 +7,8 @@ module.exports = function (plugin) {
|
|||
];
|
||||
|
||||
var cmd = 'npm';
|
||||
var args = ['run', 'test:dev', '--'].concat(kbnServerArgs);
|
||||
var task = (opts.runOnce) ? 'test:browser' : 'test:dev';
|
||||
var args = ['run', task, '--'].concat(kbnServerArgs);
|
||||
execFileSync(cmd, args, {
|
||||
cwd: plugin.kibanaRoot,
|
||||
stdio: ['ignore', 1, 2]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue