1.0.3 • Published 8 months ago
@letsflow/testing v1.0.3
Test Suite
Test suite for LetsFlow workflows
Installation
Install Cucumber and this library using your package manager (npm, yarn, pnpm, etc).
yarn add --dev @cucumber/cucumber @letsflow/testingConfiguration
Create the cucumber configuration cucumber.yaml
workflows:
require:
- node_modules/@letsflow/lib/**/*.jsAdd the test:workflows script in package.json
"scripts": {
"test:workflows": "cucumber-js --profile workflows"
}Features
Add features (test files) to the features folder.
Usage
Run all workflow
yarn test:workflowsRun a single feature or folder with features
yarn test:workflows features/some-test.featureEnvironment variables
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.
Documentation
Please read the full documentation at letsflow.io