Related pages:
"output_folder" : "./node_modules/nightwatch/examples/reports", "custom_commands_path" : "./node_modules/nightwatch/examples/custom-commands", "custom_assertions_path" : "", "globals_path" : "./node_modules/nightwatch/examples/globals.json",
#!/usr/bin/env node require('./node_modules/nightwatch/bin/runner.js');
sudo npm install -g dalek-cli
.
npm install dalekjs --save-dev
This creates the folder “node_modules” in your project directory, and installs some code there.
dalek -v
for checking the proper installation. Both “dalek-cli” and “dalek” must be listed, so 2 modules, not just one.
dalek test/my_first_test.js
sudo npm install dalek-browser-chrome --save-dev
or
npm install dalek-browser-firefox --save-dev
dalek test/my_first_test.js -b chrome
or
dalek test/my_first_test.js -b firefox
npm install -g dalek-reporter-html --save-dev
mkdir report
mkdir cd report
mkdir dalek
mkdir cd ..
dalek test/my_first_test.js -r console,html
This command expects that the folder “report/dalek” exists. If so, it creates the file “index.html” in that directory with all the information from your test run.