Package detail

karma-edgium-launcher

koddsson9kMIT4.0.0-0

A Karma plugin. Launcher for Edge and Edge Canary.

karma-plugin, karma-launcher, edge

readme

karma-edgium-launcher

js-standard-style npm version npm downloads

Build Status Dependency Status devDependency Status

Launcher for Edge and Edge Canary.

Installation

The easiest way is to keep karma-edgium-launcher as a devDependency in your package.json, by running

$ npm i -D karma-edgium-launcher

Configuration

// karma.conf.js
module.exports = function(config) {
  config.set({
    browsers: ['Edge', 'Edge_without_security'], // You may use 'EdgeCanary' or any other supported browser

    // you can define custom flags
    customLaunchers: {
      Edge_without_security: {
        base: 'Edge',
        flags: ['--disable-web-security', '--disable-site-isolation-trials']
      }
    }
  })
}

The --user-data-dir is set to a temporary directory but can be overridden on a custom launcher as shown below. One reason to do this is to have a permanent Edge user data directory inside the project directory to be able to install plugins there (e.g. JetBrains IDE Support plugin).

customLaunchers: {
  Edge_with_debugging: {
    base: 'Edge',
    edgeDataDir: path.resolve(__dirname, '.edge')
  }
}

You can pass list of browsers as a CLI argument too:

$ karma start --browsers Edge,Edge_without_security

Usage

$ npm i -D puppeteer karma-edgium-launcher
// karma.conf.js
process.env.CHROME_BIN = require('puppeteer').executablePath()

module.exports = function(config) {
  config.set({
    browsers: ['EdgeHeadless']
  })
}

For more information on Karma see the homepage.

changelog

3.1.0 (2019-08-13)

Features

  • add --disable-dev-shm-usage flag to headless (137005d)

3.0.0 (2019-07-12)

Features

  • allow overriding of the default debug port (26ae9f4), closes #187

2.2.0 (2017-06-23)

Features

2.1.1 (2017-05-05)

Bug Fixes

  • add disable-renderer-backgrounding flag (6bfc170), closes #123

2.1.0 (2017-05-02)

Features

  • add support for custom user-data-dir in Chromium (579fcfc), closes #89
  • add support for headless Chrome/ChromeCanary (7446181)

2.0.0 (2016-08-18)

Features

  • Chromium support for Linux, Darwin and Windows (33e8d82)

1.0.1 (2016-05-02)

0.2.3 (2016-03-22)

Features

  • config: Allow --user-data-dir to be set in launcher properties (2c0b7f4)

0.2.2 (2015-12-01)

Bug Fixes

  • chrome will ignore command line flags it does not yet know about (426e7c3)

0.2.1 (2015-10-07)

Bug Fixes

  • ChromeCanary: on Linux (archlinux), it can be named google-chrome-unstable (28cb5b0)

0.2.0 (2015-06-23)

Bug Fixes

  • Use fs-access shim for file detection. (6355ca88, closes #53)

0.1.9 (2015-06-23)

0.1.8 (2015-06-23)

0.1.7 (2015-06-23)

0.1.6 (2015-06-23)

Bug Fixes

  • jsFlags: un-quote --js-flags flag and automatically merge with presets (4509c277)

0.1.5 (2015-06-23)

Bug Fixes

  • better error when DARTIUM_BIN not set (27462e86)

0.1.4 (2015-06-23)

Bug Fixes

  • the translation is now disabled on launch (b2f389ba)

0.1.3 (2015-06-23)

Features

  • Launcher: Add Dartium launcher. (ae81c0c1)

0.1.2 (2015-06-23)

0.1.12 (2015-06-23)

0.1.11 (2015-06-23)

0.1.10 (2015-06-23)

Bug Fixes

  • better error when DARTIUM_BIN not set (27462e86)
  • the translation is now disabled on launch (b2f389ba)
  • jsFlags: un-quote --js-flags flag and automatically merge with presets (4509c277)

Features

  • disable popup blocking by default (2cdace9e)
  • Launcher: Add Dartium launcher. (ae81c0c1)

0.1.1 (2015-06-23)

Bug Fixes

  • handle Chrome location on Windows (62df3014)
  • correct Chrome path on Windows (9ebd9974, closes #2)

0.1.0 (2015-06-23)

0.0.2 (2015-06-23)

Features