At startup, karmayou can pass custom parameters;
karma start --my-custom-url http://google.com
Then in yours karma.conf.jsyou can access them like this:
module.exports = function(config) {
console.log('URL passed in from command line is %s', config.myCustomUrl);
config.set({
});
};
source
share