Test suite for LetsFlow workflows
Install Cucumber and this library using your package manager (npm, yarn, pnpm, etc).
yarn add --dev @cucumber/cucumber @letsflow/testing
Create the cucumber configuration cucumber.yaml
workflows:
require:
- node_modules/@letsflow/lib/**/*.js
Add the test:workflows
script in package.json
"scripts": {
"test:workflows": "cucumber-js --profile workflows"
}
Add features (test files) to the features
folder.
Run all workflow
yarn test:workflows
Run a single feature or folder with features
yarn test:workflows features/some-test.feature
The test suite assumes that the scenarios are locates in a folder name scenarios
in the current
working directory. You can set this path with env var LETSFLOW_SCENARIO_PATH
.
Please read the full documentation at letsflow.io