code: function() {
      //// SpecReporter
      //var SpecReporter = require('jasmine-spec-reporter');
      //jasmine.getEnv().addReporter(new SpecReporter({displayStacktrace: 'none'}));
      //// jasmine.getEnv().addReporter(new SpecReporter({displayStacktrace: 'all'}));
  
      // debugging
      // console.log('browser.params:' + JSON.stringify(browser.params));
      jasmine.getEnv().addReporter(new Reporter( browser.params )) ;
  
      global.sendKeys = sendKeys;
  
      // Allow changing bootstrap mode to NG1 for upgrade tests
      global.setProtractorToNg1Mode = function() {
        browser.useAllAngular2AppRoots = false;
        browser.rootEl = 'body';
      };
    }
docs: doesn't seem to work. resultJsonOutputFile: "foo.json",