I am not seeing any test logs in my docker image, when I run CIRCLECI_ENV=true ./node_modules/nightwatch/bin/nightwatch -e chrome --debug
nightwatch.conf.js
require("babel-register")();
const circleCi = process.env.CIRCLECI_ENV === "true";
const args = circleCi
? ["disable-gpu", "no-sandbox", "window-size=1920,1080", "verbose"]
: ["disable-gpu", "no-sandbox", "window-size=2520,1880", "verbose", "incognito", "disable-extensions", "auto-open-devtools-for-tabs"];
const testWorks = circleCi ? true : false;
module.exports = {
src_folders: ["tests/nightwatch/tests"],
output_folder: "reports",
custom_assertions_path: ["tests/nightwatch/custom_assertion"],
custom_commands_path: ["tests/nightwatch/custom_command"],
page_objects_path: "",
globals_path: "",
test_workers: testWorks,
selenium: {
start_process: true,
server_path: "./node_modules/selenium-server-standalone-jar/jar/selenium-server-standalone-3.8.1.jar",
log_path: "",
port: 4444,
cli_args: {
"webdriver.chrome.driver": "./node_modules/chromedriver/lib/chromedriver/chromedriver",
"webdriver.gecko.driver": "",
"webdriver.edge.driver": ""
}
},
test_settings: {
default: {
launch_url: "http://localhost",
selenium_port: 4444,
selenium_host: "localhost",
silent: true,
screenshots: {
enabled: false,
path: ""
},
desiredCapabilities: {
browserName: "firefox",
marionette: true
}
},
chrome: {
desiredCapabilities: {
browserName: "chrome",
javascriptEnabled: true,
acceptSslCerts: true,
chromeOptions: {
args
}
}
},
edge: {
desiredCapabilities: {
browserName: "MicrosoftEdge"
}
}
}
};
Terminal
#!/bin/bash -eo pipefail
cd ~/frontend && CIRCLECI_ENV=true ./node_modules/nightwatch/bin/nightwatch -e chrome
Starting selenium server in parallel mode... started - PID: 284
Started child process for: tests/010userLoginTests
Started child process for: tests/020vesselListTests
>> tests/010userLoginTests finished.
>> tests/020vesselListTests finished.
Exited with code 1
Aucun commentaire:
Enregistrer un commentaire