github.com/sl1pm4t/consul@v1.4.5-0.20190325224627-74c31c540f9c/ui-v2/testem.js (about)

     1  module.exports = {
     2    test_page: 'tests/index.html?hidepassed',
     3    disable_watching: true,
     4    launch_in_ci: ['Chrome'],
     5    launch_in_dev: ['Chrome'],
     6    browser_args: {
     7      Chrome: {
     8        "ci": [
     9          // --no-sandbox is needed when running Chrome inside a container
    10          process.env.CI ? '--no-sandbox' : null,
    11          '--disable-gpu',
    12          '--headless',
    13          '--remote-debugging-port=0',
    14          '--window-size=1440,900',
    15        ].filter(Boolean),
    16      },
    17    },
    18  };
    19  
    20  // outputs XML reports for CI
    21  if (process.env.EMBER_TEST_REPORT) {
    22    module.exports.report_file = process.env.EMBER_TEST_REPORT;
    23    module.exports.xunit_intermediate_output = true;
    24  }
    25  
    26  /*
    27   * ember-exam honors the `parallel` parameter in testem.js.
    28   * By default this value is 1 which means it only uses one client.
    29   * When this is set to -1 it uses the --split value of ember-exam.
    30   *
    31   * https://github.com/trentmwillis/ember-exam#split-test-parallelization
    32   * https://github.com/trentmwillis/ember-exam/issues/108
    33   */
    34  if (process.env.EMBER_EXAM_PARALLEL) {
    35    module.exports.parallel = -1
    36  }