Skip to content

Commit 8d0d05c

Browse files
committed
build(protractor): don't require benchpress bundle for all protractor tests
by moving the benchpress init into the function, we make it possible to run other protractor tests without having bechpress bundle around
1 parent ac24a30 commit 8d0d05c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

protractor-shared.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// benchpress will also load traceur runtime as our tests are written in es6
2-
var benchpress = require('./dist/build/benchpress_bundle');
3-
global.benchpress = benchpress;
41
var fs = require('fs-extra');
52

63
var argv = require('yargs')
@@ -201,6 +198,10 @@ function patchProtractorWait(browser) {
201198
}
202199

203200
exports.createBenchpressRunner = function(options) {
201+
// benchpress will also load traceur runtime as our tests are written in es6
202+
var benchpress = require('./dist/build/benchpress_bundle');
203+
global.benchpress = benchpress;
204+
204205
var nodeUuid = require('node-uuid');
205206

206207
// TODO(tbosch): add cloud reporter again (only when !options.test)

0 commit comments

Comments
 (0)