All Projects → karma-runner → Karma Chrome Launcher

karma-runner / Karma Chrome Launcher

Licence: mit
A Karma plugin. Launcher for Chrome and Chrome Canary.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Karma Chrome Launcher

Burnside
Fast and Reliable E2E Web Testing with only Javascript
Stars: ✭ 389 (-11.79%)
Mutual labels:  karma
1click Webpage Screenshot
Entire page Screenshot extension for Google Chrome. I'm developing open source extension for Google Chrome. All extension are free for use. Let's make Chrome great again!
Stars: ✭ 406 (-7.94%)
Mutual labels:  chrome
Themer
themer is inspired by trevordmiller/nova and chriskempson/base16.
Stars: ✭ 4,483 (+916.55%)
Mutual labels:  chrome
Remu
💥Chrome Extension for GitHub that view stars / star history / organizing starred repository
Stars: ✭ 394 (-10.66%)
Mutual labels:  chrome
Web Audio Samples
Web Audio API samples by Chrome WebAudio Team
Stars: ✭ 402 (-8.84%)
Mutual labels:  chrome
Linkedin scraper
A library that scrapes Linkedin for user data
Stars: ✭ 413 (-6.35%)
Mutual labels:  chrome
Easy To Rss
🚀 Chrome/Firefox Extension to retreive RSS feeds URLs from WebSite, RSSHub supported
Stars: ✭ 386 (-12.47%)
Mutual labels:  chrome
Phpdesktop
Developing Desktop Applications Like Developing Websites => phpdesktop
Stars: ✭ 434 (-1.59%)
Mutual labels:  chrome
Svg Screenshots
📸🧩 Browser extension to take scalable, semantic, accessible screenshots of websites in SVG format.
Stars: ✭ 404 (-8.39%)
Mutual labels:  chrome
Githuber
Display Github Trending repositories on Chrome New Tab Extensions
Stars: ✭ 418 (-5.22%)
Mutual labels:  chrome
Lucid
A developer tool for engineers working with React and GraphQL.
Stars: ✭ 397 (-9.98%)
Mutual labels:  chrome
Org Capture Extension
A Chrome and firefox extension facilitating org-capture in emacs
Stars: ✭ 396 (-10.2%)
Mutual labels:  chrome
Bs Detector
🚨 THIS REPOSITORY HAS MOVED. 🚨
Stars: ✭ 414 (-6.12%)
Mutual labels:  chrome
Roam Toolkit
Roam force multiplier
Stars: ✭ 390 (-11.56%)
Mutual labels:  chrome
Chromium
Chromium browser with SSL VPN. Use this browser to unblock websites.
Stars: ✭ 4,041 (+816.33%)
Mutual labels:  chrome
Browser Addon
Kee adds free, secure and easy password management features to your browser which save time and keep your private data more secure.
Stars: ✭ 386 (-12.47%)
Mutual labels:  chrome
Chromium Dashboard
Chrome Status Dashboard
Stars: ✭ 407 (-7.71%)
Mutual labels:  chrome
Scriptsafe
a browser extension to bring security and privacy to chrome, firefox, and opera
Stars: ✭ 434 (-1.59%)
Mutual labels:  chrome
Puppetron
Puppeteer (Headless Chrome Node API)-based rendering solution.
Stars: ✭ 429 (-2.72%)
Mutual labels:  chrome
Clockwork Chrome
Clockwork - php dev tools integrated to your browser - Chrome extension
Stars: ✭ 415 (-5.9%)
Mutual labels:  chrome

karma-chrome-launcher

js-standard-style npm version npm downloads

Build Status Dependency Status devDependency Status

Launcher for Google Chrome, Google Chrome Canary and Google Chromium.

Installation

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

$ npm i -D karma-chrome-launcher

Configuration

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

    // you can define custom flags
    customLaunchers: {
      Chrome_without_security: {
        base: 'Chrome',
        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 Chrome user data directory inside the project directory to be able to install plugins there (e.g. JetBrains IDE Support plugin).

customLaunchers: {
  Chrome_with_debugging: {
    base: 'Chrome',
    chromeDataDir: path.resolve(__dirname, '.chrome')
  }
}

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

$ karma start --browsers Chrome,Chrome_without_security

Headless Chromium with Puppeteer

The Chrome DevTools team created Puppeteer - it will automatically install Chromium for all platforms and contains everything you need to run it from within your CI.

Available Browsers

Note: Headless mode requires a browser version >= 59

  • Chrome (CHROME_BIN)
  • ChromeHeadless (CHROME_BIN)
  • Chromium (CHROMIUM_BIN)
  • ChromiumHeadless (CHROMIUM_BIN)
  • ChromeCanary (CHROME_CANARY_BIN)
  • ChromeCanaryHeadless (CHROME_CANARY_BIN)
  • Dartium (DARTIUM_BIN)

Usage

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

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

For more information on Karma see the homepage.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].