From 8d0d05c65fbe9ab6bfaa45faa2a3651cfaff6ad3 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Wed, 1 Jul 2015 16:37:16 -0700 Subject: [PATCH] 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 --- protractor-shared.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/protractor-shared.js b/protractor-shared.js index 324d4eb6d5..69ec626ec3 100644 --- a/protractor-shared.js +++ b/protractor-shared.js @@ -1,6 +1,3 @@ -// benchpress will also load traceur runtime as our tests are written in es6 -var benchpress = require('./dist/build/benchpress_bundle'); -global.benchpress = benchpress; var fs = require('fs-extra'); var argv = require('yargs') @@ -201,6 +198,10 @@ function patchProtractorWait(browser) { } exports.createBenchpressRunner = function(options) { + // benchpress will also load traceur runtime as our tests are written in es6 + var benchpress = require('./dist/build/benchpress_bundle'); + global.benchpress = benchpress; + var nodeUuid = require('node-uuid'); // TODO(tbosch): add cloud reporter again (only when !options.test)