karma-chrome-launcher
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -0,1 +1,11 @@ | ||
<a name="0.2.3"></a> | ||
## [0.2.3](https://github.com/karma-runner/karma-chrome-launcher/compare/v0.2.1...v0.2.3) (2016-03-22) | ||
### Features | ||
* **config:** Allow --user-data-dir to be set in launcher properties ([2c0b7f4](https://github.com/karma-runner/karma-chrome-launcher/commit/2c0b7f4)) | ||
<a name="0.2.2"></a> | ||
@@ -2,0 +12,0 @@ ## [0.2.2](https://github.com/karma-runner/karma-chrome-launcher/compare/v0.2.1...v0.2.2) (2015-12-01) |
@@ -24,2 +24,3 @@ var fsAccess = require('fs-access') | ||
var flags = args.flags || [] | ||
var userDataDir = args.chromeDataDir || this._tempDir | ||
@@ -36,3 +37,3 @@ this._getOptions = function (url) { | ||
return [ | ||
'--user-data-dir=' + this._tempDir, | ||
'--user-data-dir=' + userDataDir, | ||
'--no-default-browser-check', | ||
@@ -39,0 +40,0 @@ '--no-first-run', |
{ | ||
"name": "karma-chrome-launcher", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "A Karma plugin. Launcher for Chrome and Chrome Canary.", | ||
@@ -21,3 +21,3 @@ "main": "index.js", | ||
"fs-access": "^1.0.0", | ||
"which": "^1.0.9" | ||
"which": "^1.2.1" | ||
}, | ||
@@ -51,6 +51,6 @@ "license": "MIT", | ||
"Friedel Ziegelmayer <friedel.ziegelmayer@gmail.com>", | ||
"Friedel Ziegelmayer <dignifiedquire@gmail.com>", | ||
"Filipe Guerra <alias.mac@gmail.com>", | ||
"Aymeric Beaumet <aymeric@beaumet.me>", | ||
"Filipe Guerra <alias.mac@gmail.com>", | ||
"Marko Vuksanovic <markovuksanovic@gmail.com>", | ||
"Jeff Cross <middlefloor@gmail.com>", | ||
"Andrey Taranov <andrey.taranov@nordea.com>", | ||
"Michał Gołębiowski <m.goleb@gmail.com>", | ||
@@ -60,7 +60,9 @@ "Parashuram N <code@r.nparashuram.com>", | ||
"Vincent Voyer <vincent.voyer@algolia.com>", | ||
"Friedel Ziegelmayer <dignifiedquire@gmail.com>", | ||
"Michał Gołębiowski <m.goleb@gmail.com>", | ||
"Marko Vuksanovic <markovuksanovic@gmail.com>", | ||
"Jeff Cross <middlefloor@gmail.com>", | ||
"Joe Doyle <valdain@gmail.com>", | ||
"Julien Sanchez <julien.sanchez@lim.eu>" | ||
"Julien Sanchez <julien.sanchez@lim.eu>", | ||
"Florian-R <florian.r.dev@gmail.com>", | ||
"Michał Gołębiowski <m.goleb@gmail.com>" | ||
] | ||
} |
@@ -38,2 +38,15 @@ # karma-chrome-launcher | ||
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). | ||
```js | ||
customLaunchers: { | ||
Chrome_with_debugging: { | ||
base: 'Chrome', | ||
chromeDataDir: path.resolve(__dirname, '.chrome') | ||
} | ||
} | ||
``` | ||
You can pass list of browsers as a CLI argument too: | ||
@@ -40,0 +53,0 @@ |
18233
308
63
Updatedwhich@^1.2.1