Closed OLmitch closed 8 years ago
Ahh got it. I was using:
nightwatch.cli(function(argv) {
nightwatch.runner(argv, done, settings);
})
And I noticed using .cli() didn't make sense when I could run runner directly, so my code now looks like this:
try {
var argv = {
test: 'nightwatch/example.js',
config: 'nightwatch.json',
env: 'windows_10_safari_5_1'
};
nightwatch.runner(argv, done, settings);
} catch (error) {
console.log('Exception:' + error.message);
}
I don't know why what I was doing before was failing, but I'm glad it's working now. Thanks again
Hi Nightwatch, thanks for the platform it'll help us speed up our BrowserStack testing by 5x thanks to your parallel processing support.
Can you help me understand what I'm doing wrong here? Every time I run Nightwatch from within a JS file only a test for the "default" test environment option runs.
I'm calling Nightwatch from within a JavaScript file like so:
index.js
But when I call nightwatch.runner(argv, done, settings); only the "default" test env runs, and "windows_10_safari_5_1" nor "windows_10_chrome_46" runs. This happens when I only use one of them as the env value as well.
nightwatch.json
Is there something I'm doing wrong? Thanks!