Skip to content

letsflow/testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Apr 30, 2025
4e12e5a · Apr 30, 2025

History

28 Commits
Apr 30, 2025
Apr 27, 2025
Apr 27, 2025
Apr 27, 2025
Apr 30, 2025
Jan 12, 2025
Jan 12, 2025
Mar 5, 2025
Mar 5, 2025
Jan 12, 2025
Apr 30, 2025
Jan 15, 2025
Jan 12, 2025
Apr 30, 2025
Apr 30, 2025
Jan 12, 2025
Apr 27, 2025

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