Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (process.env.KNE_BROWSER_NAME) {
settings.test_settings[process.env.KNE_TEST_ENV].desiredCapabilities.browserName = process.env.KNE_BROWSER_NAME;
}
if (process.env.KNE_BROWSER_VERSION) {
settings.test_settings[process.env.KNE_TEST_ENV].desiredCapabilities.version = process.env.KNE_BROWSER_VERSION;
}
console.log('nightwatch settings:'
+ '\n\tNightwatch Environment: ' + process.env.KNE_TEST_ENV
+ '\n\tNightwatch Start Selenium: ' + process.env.KNE_SELENIUM_START_PROCESS
+ '\n\tBrowser Name: ' + settings.test_settings[process.env.KNE_TEST_ENV].desiredCapabilities.browserName
+ '\n\tBrowser Version: ' + settings.test_settings[process.env.KNE_TEST_ENV].desiredCapabilities.version
+ '\n\tSauceLabs Tunnel Id: ' + process.env.TRAVIS_JOB_NUMBER
+ '\n\tChromeDriver: ' + settings.selenium.cli_args['webdriver.chrome.driver']
+ '\n\tgeckoDriver: ' + settings.selenium.cli_args['webdriver.gecko.driver']
);
return settings;
})(require('./nightwatch.json'));