Created
April 11, 2016 21:49
-
-
Save davidtorroija/1b7bfa414aad59ead19a24d0eb5faa93 to your computer and use it in GitHub Desktop.
nightwatch json file to start e2e tests from scratch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"src_folders" : ["tests"], | |
"output_folder" : "./reports", | |
"custom_commands_path" : ["./node_modules/nightwatch-commands/commands/","./custom-commands/"], | |
"custom_assertions_path" : "./node_modules/nightwatch-commands/commands/", | |
"page_objects_path" : "./page-objects/", | |
"globals_path" : "", | |
"skip_testcases_on_fail": "false", | |
"end_session_on_fail": "false", | |
"selenium" : { | |
"start_process" : true, | |
"server_path" : "./selenium-server.jar", | |
"log_path" : "", | |
"host" : "127.0.0.1", | |
"port" : 4444, | |
"cli_args" : { | |
"webdriver.chrome.driver" : "./node_modules/chromedriver/bin/chromedriver", | |
"webdriver.ie.driver" : "" | |
} | |
}, | |
"test_runner" : { | |
"type" : "mocha", | |
"options" : { | |
"ui" : "bdd", | |
"reporter" : "spec" | |
} | |
}, | |
"test_settings" : { | |
"default" : { | |
"launch_url" : "http://localhost", | |
"selenium_port" : 4444, | |
"selenium_host" : "localhost", | |
"silent": true, | |
"screenshots" : { | |
"enabled" : true, | |
"path" : "tests-output/screenshots" | |
}, | |
"desiredCapabilities": { | |
"browserName": "chrome", | |
"javascriptEnabled": true, | |
"acceptSslCerts": true | |
} | |
}, | |
"chrome" : { | |
"desiredCapabilities": { | |
"browserName": "chrome", | |
"javascriptEnabled": true, | |
"acceptSslCerts": true, | |
"loggingPrefs": { "browser": "ALL" } | |
} | |
}, | |
"phantomjs":{ | |
"desiredCapabilities" : { | |
"browserName" : "phantomjs", | |
"javascriptEnabled" : true, | |
"acceptSslCerts" : true, | |
"phantomjs.binary.path" : "./node_modules/phantomjs-prebuilt/bin/phantomjs", | |
"phantomjs.cli.args" : ["--version"] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment