Skip to content

letsflow/testing

Repository files navigation

letsflow

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/testing

Configuration

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"
  }

Features

Add features (test files) to the features folder.

Usage

Run all workflow

yarn test:workflows

Run a single feature or folder with features

yarn test:workflows features/some-test.feature

Environment 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