See quick notes for recent notes on getting this demo setup on your local workstation (which should be replaced by containerized instructions in the future).
At the time of writing 2 vulnerabilities are present in upstream npm dependencies.
- Meow issue
- @wdio/[email protected] requires trim-newlines@^1.0.0 via a transitive dependency on [email protected]
- Waiting for meow to release its patch and be picked up
- Mewo issue
- ecstatic issue
- @nrwl/[email protected] requires ecstatic@^3.3.2 via [email protected]
- @nrwl/[email protected] requires ecstatic@^3.3.2 via a transitive dependency on [email protected]
- This is being fixed by http-server in this PR
This is a training aide to help people learn Declarative Gherkin. It is not easy to learn Declarative Gherkin. Thus, this app helps people understand how to take what they learned in training and see a working implementation.
Want to learn more about declarative Gherkin, read the training or look at the docs here.
Want to see the declarative Gherkin, go into the first-bank-of-change/features
folder.
Want to run the declarative Gherkin:
- Install the perquisites
- Run
nvm use
in the root folder - run
npm install
in thefirst-bank-of-change
folder - run
npm run e2e
- Then open the file
cucumber-declarative-gherkin/first-bank-of-change/.tmp/report/index.html
in a browser
NOTE: The e2e test will fail. It is to demo the advance logging.
navigate to the failing scenario to see a screenshot, test suite failure
location and client logging entries.
- Need Node and NPM, built with node 14.16.0
- NX needs to be installed globally
npm i -g nx
This demo uses a single app with everything running in memory. No servers are used for this demo.
From the repo root folder run npm run start
, then go to http:\\localhost:4200
.
When developing locally, you can run npm run start
it will watch your file
changes and reload. In addition, when working on e2e tests, run
npm run e2e-dev
, it only runs the test suite.
To run lint, use npm run lint
To run unit tests, use npm run test
WebdriverIO Cucumber framework does not generate the step definitions when they are missing. So, we use the VS Code extension Jest-cucumber code generator.
NOTE: the plugin generates regex requiring alteration, example:
Failing regex:
Then(/^they see a submittal response (.*)$/
Correct regex: (Double quotes)
Then(/^they see a submittal response "(.*)"$/
Without the double quotes, the string will contain them and fail comparisons.
See Cucumber Logging