Sample automation suite
- Run
npm installto install all required packages
-
Nightwatch JS doesn't currently support HTML reporting with the Cucumber framework, I have instead chosen to generate a JSON report and parse this using the
multiple-cucumber-html-reporterlibrary. -
I have included the flag of
--reporter=jsonbut currently this does nothing, instead it prevents output of the broken HTML report. This flag generates the JSON report--format json:report/cucumber_report.json -
If a test fails, the terminal will hang and the Chrome window will not be closed down, use
ctrl + cto kill the terminal window and close Chrome
| Command | Description |
|---|---|
npm test |
Executes the test for factorial calculation |