-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend or modify the syntax of the config file #278
Comments
I had somewhat the same idea, as there will be more options for browsers and reporters. But I would suggest something along the lines of browsers = {
// user specified values
chrome: {
args: [
'--disable-web-security',
'--some-other-keys'
],
headless: true
},
// default values
firefox: {}
}; But it should be backwards compatible and still accept browsers = ['chrome', 'firefox']; which would just use the default values as options. |
👍 |
browsers = [{
name: 'chrome', // maybe "type" or something
args: ['--disabled-web-security'],
headless: true
}, {
name: 'Firefox'
}]; On Thu, Jan 3, 2013 at 8:36 PM, SATO taichi notifications@github.comwrote:
|
great feature. Next time I don't need to open chrome manually to provide args --disable-web-security. |
Has anyone started working on this? |
Not that I know of. I'm busy with finishing the docs so we can finally release 0.6. But if you have time feel free to start :) |
Do not forget about PhantomJS ("We need more pylons" i.e. agrs (--web-security=false :) |
Support optional `cmd` and `args` parameters in the `browsers` configuration. The `args` are appended to the default command-line options for the browser. If `overrideArgs` is true, then the `args` replace the default command-line options for the browser. Occurrences of `$TEMPDIR` or `$URL` within the `args` are replaced by the temp directory and URL. Use case is to pass special options, e.g., to load browser extensions. Closes karma-runner#278
Support optional `cmd` and `args` parameters in the `browsers` configuration. The `args` are appended to the default command-line options for the browser. If `overrideArgs` is true, then the `args` replace the default command-line options for the browser. Occurrences of `$TEMPDIR` or `$URL` within the `args` are replaced by the temp directory and URL. Use case is to pass special options, e.g., to load browser extensions. Closes karma-runner#278
Guys, check out #533 |
The new config syntax has already landed in the master, so I'm closing this. |
It looks like this: module.exports = function(config) {
config.set({
browsers: ['chrome_without_security'],
customLaunchers: {
chrome_without_security: {
base: 'Chrome',
flags: ['--web-security-disabled']
}
}
});
}; Which can be sued from CLI:
|
Propose to extend or modify the syntax for the config file.
Instead:
Use:
or
Or add
browsers = {...}
as alternative syntax.The text was updated successfully, but these errors were encountered: