UNPKG

1.03 kBMarkdownView Raw
1# karma-chrome-launcher
2
3> Launcher for Google Chrome and Google Chrome Canary.
4
5## Installation
6
7**This plugin ships with Karma by default, so you don't need to install it, it should just work ;-)**
8
9The easiest way is to keep `karma-chrome-launcher` as a devDependency in your `package.json`.
10```json
11{
12 "devDependencies": {
13 "karma": "~0.10",
14 "karma-chrome-launcher": "~0.1"
15 }
16}
17```
18
19You can simple do it by:
20```bash
21npm install karma-chrome-launcher --save-dev
22```
23
24## Configuration
25```js
26// karma.conf.js
27module.exports = function(config) {
28 config.set({
29 browsers: ['Chrome', 'Chrome_without_security'],
30
31 // you can define custom flags
32 customLaunchers: {
33 Chrome_without_security: {
34 base: 'Chrome',
35 flags: ['--disable-web-security']
36 }
37 }
38 });
39};
40```
41
42You can pass list of browsers as a CLI argument too:
43```bash
44karma start --browsers Chrome,Chrome_without_security
45```
46
47----
48
49For more information on Karma see the [homepage].
50
51
52[homepage]: http://karma-runner.github.com