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
This commit is contained in:
Igor Minar 2015-07-01 16:37:16 -07:00
parent ac24a301bd
commit 8d0d05c65f
1 changed files with 4 additions and 3 deletions

View File

@ -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)